aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core/theme
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-07-10 18:30:27 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-07-24 10:58:16 +0200
commitd00dc28dd73ad9dd419d5a5ac6ac747cefbc6e8b (patch)
treec94c2b22de6707eaafcc4348f69934f265c52f52 /client/src/app/core/theme
parentad91e7006e41f8ee5b8dcefee30f99e8ca44133a (diff)
downloadPeerTube-d00dc28dd73ad9dd419d5a5ac6ac747cefbc6e8b.tar.gz
PeerTube-d00dc28dd73ad9dd419d5a5ac6ac747cefbc6e8b.tar.zst
PeerTube-d00dc28dd73ad9dd419d5a5ac6ac747cefbc6e8b.zip
WIP plugins: list installed plugins in client
Diffstat (limited to 'client/src/app/core/theme')
-rw-r--r--client/src/app/core/theme/theme.service.ts5
1 files changed, 5 insertions, 0 deletions
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 }