From 04f641b963852e74f63372d0a212277a3c3134a2 Mon Sep 17 00:00:00 2001 From: laineyhm <56163492+laineyhm@users.noreply.github.com> Date: Tue, 1 Nov 2022 11:03:15 +0700 Subject: [PATCH] Disable adding to options lists (#1564) * disable adding to options lists * remove handler for + button --- .../bellows/shared/pick-list-editor.component.html | 13 ------------- .../bellows/shared/pick-list-editor.module.ts | 8 -------- .../configuration-option-lists.component.html | 4 +++- 3 files changed, 3 insertions(+), 22 deletions(-) diff --git a/src/angular-app/bellows/shared/pick-list-editor.component.html b/src/angular-app/bellows/shared/pick-list-editor.component.html index 1ce4c00db7..a38e480c28 100644 --- a/src/angular-app/bellows/shared/pick-list-editor.component.html +++ b/src/angular-app/bellows/shared/pick-list-editor.component.html @@ -6,19 +6,6 @@ -
-
-
- - - - Add to List - -
-
-
-
diff --git a/src/angular-app/bellows/shared/pick-list-editor.module.ts b/src/angular-app/bellows/shared/pick-list-editor.module.ts index e3c08bb1c3..5cafd6bcf8 100644 --- a/src/angular-app/bellows/shared/pick-list-editor.module.ts +++ b/src/angular-app/bellows/shared/pick-list-editor.module.ts @@ -25,14 +25,6 @@ export class PickListEditorController implements angular.IController { } } - pickAddItem(): void { - if (this.newValue) { - const key = PickListEditorController.keyFromValue(this.newValue); - this.items.push({ key, value: this.newValue }); - this.isDeletable[key] = true; - this.newValue = undefined; - } - } pickRemoveItem(index: number): void { delete this.isDeletable[this.items[index].key]; diff --git a/src/angular-app/languageforge/lexicon/settings/configuration/configuration-option-lists.component.html b/src/angular-app/languageforge/lexicon/settings/configuration/configuration-option-lists.component.html index 33d7795a0c..87bafa5655 100644 --- a/src/angular-app/languageforge/lexicon/settings/configuration/configuration-option-lists.component.html +++ b/src/angular-app/languageforge/lexicon/settings/configuration/configuration-option-lists.component.html @@ -18,7 +18,9 @@

{{$ctrl.olcOptionListsDirty[$ctrl.currentListIndex].name}}

- (At this time {{$ctrl.olcOptionListsDirty[$ctrl.currentListIndex].name}} items cannot be deleted) +
+ To add or remove items from this list, please use FieldWorks (FLEx). +