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}}
- @for (option of getCategoryOptions(category); track option.key) {
-
-
+
+ @for (option of getCategoryOptions(category); track option.key) {
- @switch (option.type) {
- @case (ConfigOptionType.Select) {
}
- @case (ConfigOptionType.Number) {
}
- @case (ConfigOptionType.Boolean) {
}
- @case (ConfigOptionType.String) {
}
- }
+
+
+
+
+ {{option.title}}
+
+
+
+
+
+
+ @switch (option.type) {
+ @case (ConfigOptionType.Select) {
}
+ @case (ConfigOptionType.Number) {
}
+ @case (ConfigOptionType.Boolean) {
}
+ @case (ConfigOptionType.String) {
}
+ }
+
+
+
-
- }
+ }
+
diff --git a/src-ui/src/app/components/admin/config/config.component.spec.ts b/src-ui/src/app/components/admin/config/config.component.spec.ts
index a625cc1b2..746f0e041 100644
--- a/src-ui/src/app/components/admin/config/config.component.spec.ts
+++ b/src-ui/src/app/components/admin/config/config.component.spec.ts
@@ -11,7 +11,7 @@ import { NgbModule } from '@ng-bootstrap/ng-bootstrap'
import { NgSelectModule } from '@ng-select/ng-select'
import { TextComponent } from '../../common/input/text/text.component'
import { NumberComponent } from '../../common/input/number/number.component'
-import { CheckComponent } from '../../common/input/check/check.component'
+import { SwitchComponent } from '../../common/input/switch/switch.component'
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
import { PageHeaderComponent } from '../../common/page-header/page-header.component'
import { SelectComponent } from '../../common/input/select/select.component'
@@ -29,7 +29,7 @@ describe('ConfigComponent', () => {
TextComponent,
SelectComponent,
NumberComponent,
- CheckComponent,
+ SwitchComponent,
PageHeaderComponent,
],
imports: [
diff --git a/src-ui/src/app/components/common/input/number/number.component.html b/src-ui/src/app/components/common/input/number/number.component.html
index f194270d8..c9baf38a1 100644
--- a/src-ui/src/app/components/common/input/number/number.component.html
+++ b/src-ui/src/app/components/common/input/number/number.component.html
@@ -1,7 +1,9 @@
-
+ @if (title) {
+
+ }
@if (removable) {