Browse Source

Fix state controller to not update state when stateId is not changed.

pull/4698/head
Igor Kulikov 5 years ago
parent
commit
31ebf4e645
  1. 1
      ui-ngx/src/app/modules/home/components/dashboard-page/states/entity-state-controller.component.ts

1
ui-ngx/src/app/modules/home/components/dashboard-page/states/entity-state-controller.component.ts

@ -275,6 +275,7 @@ export class EntityStateControllerComponent extends StateControllerComponent imp
}
private gotoState(stateId: string, update: boolean, openRightLayout?: boolean) {
update = update && this.dashboardCtrl.dashboardCtx.state !== stateId;
this.dashboardCtrl.openDashboardState(stateId, openRightLayout);
this.mobileService.handleDashboardStateName(this.getStateName(this.stateObject.length - 1));
if (update) {

Loading…
Cancel
Save