Browse Source
Merge pull request #3370 from vvlladd28/improvmnet/minnor-fix
Fixed unclean state when changing the dashboard
pull/3378/head
Igor Kulikov
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
ui-ngx/src/app/modules/home/pages/dashboard/dashboard-page.component.ts
|
|
@ -623,6 +623,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC |
|
|
|
|
|
|
|
|
public currentDashboardIdChanged(dashboardId: string) { |
|
|
public currentDashboardIdChanged(dashboardId: string) { |
|
|
if (!this.widgetEditMode) { |
|
|
if (!this.widgetEditMode) { |
|
|
|
|
|
this.dashboardCtx.stateController.cleanupPreservedStates(); |
|
|
if (this.currentDashboardScope === 'customer' && this.authUser.authority === Authority.TENANT_ADMIN) { |
|
|
if (this.currentDashboardScope === 'customer' && this.authUser.authority === Authority.TENANT_ADMIN) { |
|
|
this.router.navigateByUrl(`customers/${this.currentCustomerId}/dashboards/${dashboardId}`); |
|
|
this.router.navigateByUrl(`customers/${this.currentCustomerId}/dashboards/${dashboardId}`); |
|
|
} else { |
|
|
} else { |
|
|
|