aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/core')
-rw-r--r--client/src/app/core/plugins/plugin.service.ts2
-rw-r--r--client/src/app/core/theme/theme.service.ts5
2 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts
index 4abe9ee8d..86bde2d02 100644
--- a/client/src/app/core/plugins/plugin.service.ts
+++ b/client/src/app/core/plugins/plugin.service.ts
@@ -5,7 +5,7 @@ import { ServerService } from '@app/core/server/server.service'
5import { ClientScript } from '@shared/models/plugins/plugin-package-json.model' 5import { ClientScript } from '@shared/models/plugins/plugin-package-json.model'
6import { PluginScope } from '@shared/models/plugins/plugin-scope.type' 6import { PluginScope } from '@shared/models/plugins/plugin-scope.type'
7import { environment } from '../../../environments/environment' 7import { environment } from '../../../environments/environment'
8import { RegisterHookOptions } from '@shared/models/plugins/register.model' 8import { RegisterHookOptions } from '@shared/models/plugins/register-hook.model'
9import { ReplaySubject } from 'rxjs' 9import { ReplaySubject } from 'rxjs'
10import { first, shareReplay } from 'rxjs/operators' 10import { first, shareReplay } from 'rxjs/operators'
11 11
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 {
83 console.log('Enabling %s theme.', currentTheme) 83 console.log('Enabling %s theme.', currentTheme)
84 84
85 this.loadTheme(currentTheme) 85 this.loadTheme(currentTheme)
86
86 const theme = this.getTheme(currentTheme) 87 const theme = this.getTheme(currentTheme)
87 if (theme) { 88 if (theme) {
88 console.log('Adding scripts of theme %s.', currentTheme) 89 console.log('Adding scripts of theme %s.', currentTheme)
@@ -95,6 +96,10 @@ export class ThemeService {
95 } 96 }
96 97
97 private listenUserTheme () { 98 private listenUserTheme () {
99 if (!this.auth.isLoggedIn()) {
100 this.updateCurrentTheme()
101 }
102
98 this.auth.userInformationLoaded 103 this.auth.userInformationLoaded
99 .subscribe(() => this.updateCurrentTheme()) 104 .subscribe(() => this.updateCurrentTheme())
100 } 105 }