From 1fdbba6fc6897921928ef70b563d69bc7c44c8fa Mon Sep 17 00:00:00 2001 From: Dmitriymush Date: Tue, 19 Dec 2023 13:44:28 +0200 Subject: [PATCH 1/2] UI: fixed initial value for targetDashboardId valueChanges pipe --- .../widget/action/widget-action-dialog.component.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/action/widget-action-dialog.component.ts b/ui-ngx/src/app/modules/home/components/widget/action/widget-action-dialog.component.ts index 06cb6b1106..0aeed84e5e 100644 --- a/ui-ngx/src/app/modules/home/components/widget/action/widget-action-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/action/widget-action-dialog.component.ts @@ -225,7 +225,7 @@ export class WidgetActionDialogComponent extends DialogComponent(targetDashboardId), + dashboardControl.valueChanges.pipe( + startWith(dashboardControl.value), tap(() => { this.targetDashboardStateSearchText = ''; }), From 661ab5b76f9188238155cdf7bb0ea3922577c71e Mon Sep 17 00:00:00 2001 From: Dmitriymush Date: Thu, 21 Dec 2023 17:54:32 +0200 Subject: [PATCH 2/2] UI: widget action dialog refactoring and improvements --- .../widget-action-dialog.component.html | 1 + .../action/widget-action-dialog.component.ts | 65 ++++++++++++++----- 2 files changed, 49 insertions(+), 17 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/action/widget-action-dialog.component.html b/ui-ngx/src/app/modules/home/components/widget/action/widget-action-dialog.component.html index 7903388d84..57a21b6807 100644 --- a/ui-ngx/src/app/modules/home/components/widget/action/widget-action-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/action/widget-action-dialog.component.html @@ -97,6 +97,7 @@ #dashboardStateInput formControlName="targetDashboardStateId" [required]="widgetActionFormGroup.get('type').value === widgetActionType.openDashboardState" + (focusin)="onFocus()" [matAutocomplete]="targetDashboardStateAutocomplete">