Commit 5ed505d271214bbb79bf87754a7d30903fd8dd9c
1 parent
547055bb
Do not handle dashboard state name from dialog by mobile app
Showing
2 changed files
with
4 additions
and
2 deletions
... | ... | @@ -235,7 +235,7 @@ export class DefaultStateControllerComponent extends StateControllerComponent im |
235 | 235 | private gotoState(stateId: string, update: boolean, openRightLayout?: boolean) { |
236 | 236 | if (this.dashboardCtrl.dashboardCtx.state !== stateId) { |
237 | 237 | this.dashboardCtrl.openDashboardState(stateId, openRightLayout); |
238 | - if (stateId && this.statesValue[stateId]) { | |
238 | + if (this.syncStateWithQueryParam && stateId && this.statesValue[stateId]) { | |
239 | 239 | this.mobileService.handleDashboardStateName(this.getStateName(stateId, this.statesValue[stateId])); |
240 | 240 | } |
241 | 241 | if (update) { | ... | ... |
... | ... | @@ -277,7 +277,9 @@ export class EntityStateControllerComponent extends StateControllerComponent imp |
277 | 277 | private gotoState(stateId: string, update: boolean, openRightLayout?: boolean) { |
278 | 278 | const isStateIdChanged = this.dashboardCtrl.dashboardCtx.state !== stateId; |
279 | 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 | 283 | if (update) { |
282 | 284 | this.updateLocation(isStateIdChanged); |
283 | 285 | } | ... | ... |