From bde3ff8435a24467614b43fea3f9c10ee6714163 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Mon, 30 Aug 2021 19:12:18 +0300 Subject: [PATCH 1/4] UI: When clicking the button "Show on widget", the default widget bundle did not always work --- .../app/shared/components/widgets-bundle-select.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui-ngx/src/app/shared/components/widgets-bundle-select.component.ts b/ui-ngx/src/app/shared/components/widgets-bundle-select.component.ts index 9a538b6560..57cd0b0677 100644 --- a/ui-ngx/src/app/shared/components/widgets-bundle-select.component.ts +++ b/ui-ngx/src/app/shared/components/widgets-bundle-select.component.ts @@ -140,6 +140,8 @@ export class WidgetsBundleSelectComponent implements ControlValueAccessor, OnIni this.widgetsBundle = found; this.updateView(); } + } else { + this.widgetsBundle = null; } } From 499a6dbe7f1c69ae16177e1c40985bbcbc325a91 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Tue, 31 Aug 2021 18:57:07 +0300 Subject: [PATCH 2/4] UI: Refactoring attributes-table component, add changeDetection for load widget bundle --- .../attribute/attribute-table.component.html | 8 ++++---- .../attribute/attribute-table.component.ts | 20 ++++++++++++------- .../widgets-bundle-select.component.ts | 1 + 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.html b/ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.html index 769c8a08af..ead92fda03 100644 --- a/ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.html +++ b/ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.html @@ -112,8 +112,8 @@ fxFlex [selectFirstBundle]="false" [selectBundleAlias]="selectedWidgetsBundleAlias" - [(ngModel)]="widgetsBundle" - (ngModelChange)="onWidgetsBundleChanged()"> + [ngModel]="null" + (ngModelChange)="onWidgetsBundleChanged($event)">