From fe62406e5089d1c6b954a7d8f312968f38050ce6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 26 Sep 2024 16:29:26 +0200 Subject: [PATCH] Fix select with custom number labels --- .../edit-basic-configuration.component.html | 20 +++++++++++-------- .../edit-live-configuration.component.html | 5 +++-- .../edit-vod-transcoding.component.html | 5 +++-- .../users/user-edit/user-edit.component.html | 10 ++++++---- .../select/select-custom-value.component.html | 2 +- .../select/select-custom-value.component.ts | 5 ++++- 6 files changed, 29 insertions(+), 18 deletions(-) diff --git a/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.html b/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.html index dd1f7129d..722852d5e 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.html @@ -25,10 +25,11 @@
- +
- +
- +
- + If the user decides to include the video files in the archive
- + @@ -177,7 +177,8 @@
- + @@ -200,7 +200,8 @@
- +
- + - + {{ inputSuffix }} diff --git a/client/src/app/shared/shared-forms/select/select-custom-value.component.ts b/client/src/app/shared/shared-forms/select/select-custom-value.component.ts index 94973ae3f..a2ac4cdc6 100644 --- a/client/src/app/shared/shared-forms/select/select-custom-value.component.ts +++ b/client/src/app/shared/shared-forms/select/select-custom-value.component.ts @@ -19,11 +19,14 @@ import { SelectOptionsComponent } from './select-options.component' imports: [ SelectOptionsComponent, FormsModule, NgIf ] }) export class SelectCustomValueComponent implements ControlValueAccessor, OnChanges { + @Input({ required: true }) labelForId: string + @Input({ required: true }) labelId: string + @Input() items: SelectOptionsItem[] = [] + @Input() clearable = false @Input() searchable = false @Input() groupBy: string - @Input() labelForId: string @Input() inputSuffix: string @Input() inputType = 'text'