Browse Source

Merge pull request #6688 from vvlladd28/bug/dashboard-page/edit-widget

[3.4] UI: Fixed incorrect switch edit widget panel when active add widget panel in dashboard page
pull/6698/head
Igor Kulikov 4 years ago
committed by GitHub
parent
commit
54cc729bee
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts

7
ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts

@ -1127,6 +1127,13 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
editWidget($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget) { editWidget($event: Event, layoutCtx: DashboardPageLayoutContext, widget: Widget) {
$event.stopPropagation(); $event.stopPropagation();
if (this.isAddingWidget) {
this.onAddWidgetClosed();
this.isAddingWidgetClosed = true;
this.isEditingWidgetClosed = false;
}
if (this.editingWidgetOriginal === widget) { if (this.editingWidgetOriginal === widget) {
this.onEditWidgetClosed(); this.onEditWidgetClosed();
} else { } else {

Loading…
Cancel
Save