diff options
author | MichaelMorris <michael.morris@est.tech> | 2022-03-10 12:19:18 +0000 |
---|---|---|
committer | Andr� Schmid <andre.schmid@est.tech> | 2022-03-14 15:23:07 +0000 |
commit | 302c525546650b71ad699903d98090f8cb23f068 (patch) | |
tree | 0284bef058f201425d98cdd8987e38a9269f5ce9 /catalog-ui/src | |
parent | 5816f717507a2edc5fdc17cfee579358f2949961 (diff) |
Fix cannot set node filter cap using get_property
Change-Id: I92fd4016b19e03e22622cf6e476f17b49e3d6a47
Issue-ID: SDC-3904
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Diffstat (limited to 'catalog-ui/src')
-rw-r--r-- | catalog-ui/src/app/ng2/pages/composition/capabilities-filter-properties-editor/capabilities-filter-properties-editor.component.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/catalog-ui/src/app/ng2/pages/composition/capabilities-filter-properties-editor/capabilities-filter-properties-editor.component.ts b/catalog-ui/src/app/ng2/pages/composition/capabilities-filter-properties-editor/capabilities-filter-properties-editor.component.ts index 3781a5163d..7e3bc69835 100644 --- a/catalog-ui/src/app/ng2/pages/composition/capabilities-filter-properties-editor/capabilities-filter-properties-editor.component.ts +++ b/catalog-ui/src/app/ng2/pages/composition/capabilities-filter-properties-editor/capabilities-filter-properties-editor.component.ts @@ -137,7 +137,7 @@ export class CapabilitiesFilterPropertiesEditorComponent { if (!this.currentRule.sourceName && this.currentRule.sourceType === this.SOURCE_TYPES.STATIC.value) { this.currentRule.sourceName = this.SOURCE_TYPES.STATIC.value; } - if (!this.input.componentInstanceCapabilitiesMap) { + if (this.input.componentInstanceCapabilitiesMap) { this.selectedCapabilitiesPropertyObject = Array.from(this.input.componentInstanceCapabilitiesMap .get(this.currentRule.capabilityName)) .find(property => property.name == this.currentRule.servicePropertyName); @@ -176,8 +176,8 @@ export class CapabilitiesFilterPropertiesEditorComponent { this.filterOptionsByType(); } - onServicePropertyChanged() { - this.updateOperatorTypesList(); + onServicePropertyChanged() { + this.syncRuleData(); this.filterOptionsByType(); this.currentRule.value = ''; } |