console.log('Enabling %s theme.', currentTheme)
this.loadTheme(currentTheme)
+
const theme = this.getTheme(currentTheme)
if (theme) {
console.log('Adding scripts of theme %s.', currentTheme)
- this.pluginService.addPlugin(theme)
+ this.pluginService.addPlugin(theme, true)
this.pluginService.reloadLoadedScopes()
}
}
private listenUserTheme () {
+ if (!this.auth.isLoggedIn()) {
+ this.updateCurrentTheme()
+ }
+
this.auth.userInformationLoaded
.subscribe(() => this.updateCurrentTheme())
}