Browse Source
Merge pull request #3355 from vvlladd28/fixed/decoder-state
Fixed decoder state params
pull/3363/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
2 additions and
2 deletions
-
ui-ngx/src/app/modules/home/pages/dashboard/states/state-controller.component.ts
|
|
|
@ -100,7 +100,7 @@ export abstract class StateControllerComponent implements IStateControllerCompon |
|
|
|
this.rxSubscriptions.push(this.route.queryParamMap.subscribe((paramMap) => { |
|
|
|
const dashboardId = this.route.snapshot.params.dashboardId; |
|
|
|
if (this.dashboardId === dashboardId) { |
|
|
|
const newState = paramMap.get('state'); |
|
|
|
const newState = decodeURIComponent(paramMap.get('state')); |
|
|
|
if (this.currentState !== newState) { |
|
|
|
this.currentState = newState; |
|
|
|
if (this.inited) { |
|
|
|
@ -147,7 +147,7 @@ export abstract class StateControllerComponent implements IStateControllerCompon |
|
|
|
} |
|
|
|
|
|
|
|
public reInit() { |
|
|
|
this.currentState = this.route.snapshot.queryParamMap.get('state'); |
|
|
|
this.currentState = decodeURIComponent(this.route.snapshot.queryParamMap.get('state')); |
|
|
|
this.init(); |
|
|
|
} |
|
|
|
|
|
|
|
|