From 1409a5596746cb175f60cf57c06e030639232777 Mon Sep 17 00:00:00 2001 From: Drew Bomhof Date: Mon, 12 Feb 2018 14:35:08 -0500 Subject: [PATCH] Set ng-change for tag control options Create a function setupCategoryOptions to be called on ng-change https://bugzilla.redhat.com/show_bug.cgi?id=1542590 --- src/dialog-editor/components/abstractModal.ts | 1 + .../modalFieldTemplateComponent.ts | 1 + .../modal-field-template/tag-control.html | 1 + .../components/modal-field/field.html | 1 + .../components/modal/modalComponent.spec.ts | 28 +++++++++++++++++++ .../components/modal/modalComponent.ts | 17 +++++++++++ 6 files changed, 49 insertions(+) create mode 100644 src/dialog-editor/components/modal/modalComponent.spec.ts diff --git a/src/dialog-editor/components/abstractModal.ts b/src/dialog-editor/components/abstractModal.ts index b0d648c04e..57532dd7c9 100644 --- a/src/dialog-editor/components/abstractModal.ts +++ b/src/dialog-editor/components/abstractModal.ts @@ -26,6 +26,7 @@ export default class AbstractModal { addEntry: '=?', removeEntry: '=?', currentCategoryEntries: '=?', + setupCategoryOptions: '=?', resolveCategories: '=?', modalTabIsSet: '<', modalTabSet: '<', diff --git a/src/dialog-editor/components/modal-field-template/modalFieldTemplateComponent.ts b/src/dialog-editor/components/modal-field-template/modalFieldTemplateComponent.ts index 459900fee4..326b284363 100644 --- a/src/dialog-editor/components/modal-field-template/modalFieldTemplateComponent.ts +++ b/src/dialog-editor/components/modal-field-template/modalFieldTemplateComponent.ts @@ -47,6 +47,7 @@ export default class ModalFieldTemplate { addEntry: '=?', removeEntry: '=?', currentCategoryEntries: '=?', + setupCategoryOptions: '=?', resolveCategories: '=?', modalTabIsSet: '<', modalTab: '=', diff --git a/src/dialog-editor/components/modal-field-template/tag-control.html b/src/dialog-editor/components/modal-field-template/tag-control.html index f6275c6e04..d719a4a1ef 100644 --- a/src/dialog-editor/components/modal-field-template/tag-control.html +++ b/src/dialog-editor/components/modal-field-template/tag-control.html @@ -23,6 +23,7 @@