Browse Source

UI: Fixed incorrect show edit widget panel when active add widget panel in dashboard page

pull/6688/head
Vladyslav_Prykhodko 4 years ago
parent
commit
db840bf4d8
  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) {
$event.stopPropagation();
if (this.isAddingWidget) {
this.onAddWidgetClosed();
this.isAddingWidgetClosed = true;
this.isEditingWidgetClosed = false;
}
if (this.editingWidgetOriginal === widget) {
this.onEditWidgetClosed();
} else {

Loading…
Cancel
Save