From 634f3cee0f42cf5b984ae03ff5f115ef89abda75 Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Thu, 21 Dec 2023 09:05:29 -0800
Subject: [PATCH] Saving work on slightly less ugly frontend config
---
src-ui/src/app/app.module.ts | 2 +
.../admin/config/config.component.html | 40 ++++++++++++-------
.../admin/config/config.component.spec.ts | 4 +-
.../common/input/number/number.component.html | 4 +-
.../common/input/switch/switch.component.html | 27 +++++++++++++
.../common/input/switch/switch.component.scss | 0
.../input/switch/switch.component.spec.ts | 39 ++++++++++++++++++
.../common/input/switch/switch.component.ts | 21 ++++++++++
.../common/input/text/text.component.html | 4 +-
9 files changed, 123 insertions(+), 18 deletions(-)
create mode 100644 src-ui/src/app/components/common/input/switch/switch.component.html
create mode 100644 src-ui/src/app/components/common/input/switch/switch.component.scss
create mode 100644 src-ui/src/app/components/common/input/switch/switch.component.spec.ts
create mode 100644 src-ui/src/app/components/common/input/switch/switch.component.ts
diff --git a/src-ui/src/app/app.module.ts b/src-ui/src/app/app.module.ts
index dbccec0ca..6d8d58944 100644
--- a/src-ui/src/app/app.module.ts
+++ b/src-ui/src/app/app.module.ts
@@ -109,6 +109,7 @@ import { PdfViewerComponent } from './components/common/pdf-viewer/pdf-viewer.co
import { DocumentLinkComponent } from './components/common/input/document-link/document-link.component'
import { PreviewPopupComponent } from './components/common/preview-popup/preview-popup.component'
import { ConfigComponent } from './components/admin/config/config.component'
+import { SwitchComponent } from './components/common/input/switch/switch.component'
import localeAf from '@angular/common/locales/af'
import localeAr from '@angular/common/locales/ar'
@@ -265,6 +266,7 @@ function initializeApp(settings: SettingsService) {
DocumentLinkComponent,
PreviewPopupComponent,
ConfigComponent,
+ SwitchComponent,
],
imports: [
BrowserModule,
diff --git a/src-ui/src/app/components/admin/config/config.component.html b/src-ui/src/app/components/admin/config/config.component.html
index fcc07ec95..630b2eb41 100644
--- a/src-ui/src/app/components/admin/config/config.component.html
+++ b/src-ui/src/app/components/admin/config/config.component.html
@@ -8,22 +8,34 @@
{{category}}
+ {{option.title}}
+
+
+
+
+