Commit 5ed505d271214bbb79bf87754a7d30903fd8dd9c

Authored by Igor Kulikov
1 parent 547055bb

Do not handle dashboard state name from dialog by mobile app

@@ -235,7 +235,7 @@ export class DefaultStateControllerComponent extends StateControllerComponent im @@ -235,7 +235,7 @@ export class DefaultStateControllerComponent extends StateControllerComponent im
235 private gotoState(stateId: string, update: boolean, openRightLayout?: boolean) { 235 private gotoState(stateId: string, update: boolean, openRightLayout?: boolean) {
236 if (this.dashboardCtrl.dashboardCtx.state !== stateId) { 236 if (this.dashboardCtrl.dashboardCtx.state !== stateId) {
237 this.dashboardCtrl.openDashboardState(stateId, openRightLayout); 237 this.dashboardCtrl.openDashboardState(stateId, openRightLayout);
238 - if (stateId && this.statesValue[stateId]) { 238 + if (this.syncStateWithQueryParam && stateId && this.statesValue[stateId]) {
239 this.mobileService.handleDashboardStateName(this.getStateName(stateId, this.statesValue[stateId])); 239 this.mobileService.handleDashboardStateName(this.getStateName(stateId, this.statesValue[stateId]));
240 } 240 }
241 if (update) { 241 if (update) {
@@ -277,7 +277,9 @@ export class EntityStateControllerComponent extends StateControllerComponent imp @@ -277,7 +277,9 @@ export class EntityStateControllerComponent extends StateControllerComponent imp
277 private gotoState(stateId: string, update: boolean, openRightLayout?: boolean) { 277 private gotoState(stateId: string, update: boolean, openRightLayout?: boolean) {
278 const isStateIdChanged = this.dashboardCtrl.dashboardCtx.state !== stateId; 278 const isStateIdChanged = this.dashboardCtrl.dashboardCtx.state !== stateId;
279 this.dashboardCtrl.openDashboardState(stateId, openRightLayout); 279 this.dashboardCtrl.openDashboardState(stateId, openRightLayout);
280 - this.mobileService.handleDashboardStateName(this.getStateName(this.stateObject.length - 1)); 280 + if (this.syncStateWithQueryParam) {
  281 + this.mobileService.handleDashboardStateName(this.getStateName(this.stateObject.length - 1));
  282 + }
281 if (update) { 283 if (update) {
282 this.updateLocation(isStateIdChanged); 284 this.updateLocation(isStateIdChanged);
283 } 285 }