[Fix] Fixed webapps for missing userConfig
This commit is contained in:
parent
2e2a897e63
commit
3a60e720d8
|
@ -271,13 +271,11 @@
|
|||
},
|
||||
authTokenValid: {
|
||||
type: Boolean,
|
||||
value: false
|
||||
value: false,
|
||||
observer: "authTokenValidObserver"
|
||||
},
|
||||
userConfig: {
|
||||
type: Object,
|
||||
value: function () {
|
||||
return Strolch.getUserConfig();
|
||||
}
|
||||
type: Object
|
||||
},
|
||||
userLocale: {
|
||||
type: String,
|
||||
|
@ -317,6 +315,7 @@
|
|||
observers: [],
|
||||
|
||||
listeners: {
|
||||
"cx-reload": "reload",
|
||||
"cx-show-toast": "onShowToast",
|
||||
"cx-server-not-available": "onServerNotAvailable",
|
||||
"cx-session-invalid": "onSessionInvalid",
|
||||
|
@ -331,6 +330,10 @@
|
|||
"cx-log-out": "onLogOut",
|
||||
},
|
||||
|
||||
reload: function () {
|
||||
this.reloadPage(this.selectedPage);
|
||||
},
|
||||
|
||||
observePage: function (newValue, oldValue) {
|
||||
if (newValue) {
|
||||
this.reloadPage(newValue);
|
||||
|
@ -360,6 +363,12 @@
|
|||
}
|
||||
},
|
||||
|
||||
authTokenValidObserver: function (newValue, oldValue) {
|
||||
if (newValue && !oldValue) {
|
||||
this.userConfig = Strolch.getUserConfig();
|
||||
}
|
||||
},
|
||||
|
||||
refreshBrowser: function () {
|
||||
localStorage['appScmRevision'] = this.scmRevision;
|
||||
document.location.reload();
|
||||
|
|
Loading…
Reference in New Issue