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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
0 deletions
-
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 { |
|
|
|