diff --git a/li.strolch.mvn.archetype.webapp/src/main/resources/archetype-resources/src/main/webapp/app/src/c-app.html b/li.strolch.mvn.archetype.webapp/src/main/resources/archetype-resources/src/main/webapp/app/src/c-app.html index 6a30b9691..f268dd954 100644 --- a/li.strolch.mvn.archetype.webapp/src/main/resources/archetype-resources/src/main/webapp/app/src/c-app.html +++ b/li.strolch.mvn.archetype.webapp/src/main/resources/archetype-resources/src/main/webapp/app/src/c-app.html @@ -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();