From d00dc28dd73ad9dd419d5a5ac6ac747cefbc6e8b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 10 Jul 2019 18:30:27 +0200 Subject: WIP plugins: list installed plugins in client --- client/src/app/core/theme/theme.service.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client/src/app/core/theme') diff --git a/client/src/app/core/theme/theme.service.ts b/client/src/app/core/theme/theme.service.ts index ad59c203b..76199d1cc 100644 --- a/client/src/app/core/theme/theme.service.ts +++ b/client/src/app/core/theme/theme.service.ts @@ -83,6 +83,7 @@ export class ThemeService { console.log('Enabling %s theme.', currentTheme) this.loadTheme(currentTheme) + const theme = this.getTheme(currentTheme) if (theme) { console.log('Adding scripts of theme %s.', currentTheme) @@ -95,6 +96,10 @@ export class ThemeService { } private listenUserTheme () { + if (!this.auth.isLoggedIn()) { + this.updateCurrentTheme() + } + this.auth.userInformationLoaded .subscribe(() => this.updateCurrentTheme()) } -- cgit v1.2.3