diff options
author | Chocobozzz <me@florianbigard.com> | 2019-12-13 09:32:36 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-12-13 09:33:06 +0100 |
commit | 7c93905d14bf7d86d04dbbffc6e6a510c852f360 (patch) | |
tree | f476f9253e0998c29ef7ff65f28a77d7c07be37b /client/src/app/core/theme/theme.service.ts | |
parent | 94dfca3e35d10368fe424a48b0f78d9e0d04e724 (diff) | |
download | PeerTube-7c93905d14bf7d86d04dbbffc6e6a510c852f360.tar.gz PeerTube-7c93905d14bf7d86d04dbbffc6e6a510c852f360.tar.zst PeerTube-7c93905d14bf7d86d04dbbffc6e6a510c852f360.zip |
Fix theme loading
Diffstat (limited to 'client/src/app/core/theme/theme.service.ts')
-rw-r--r-- | client/src/app/core/theme/theme.service.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/core/theme/theme.service.ts b/client/src/app/core/theme/theme.service.ts index 9be8e7a2d..3eebc1acc 100644 --- a/client/src/app/core/theme/theme.service.ts +++ b/client/src/app/core/theme/theme.service.ts | |||
@@ -5,6 +5,7 @@ import { environment } from '../../../environments/environment' | |||
5 | import { PluginService } from '@app/core/plugins/plugin.service' | 5 | import { PluginService } from '@app/core/plugins/plugin.service' |
6 | import { ServerConfigTheme } from '@shared/models' | 6 | import { ServerConfigTheme } from '@shared/models' |
7 | import { peertubeLocalStorage } from '@app/shared/misc/peertube-web-storage' | 7 | import { peertubeLocalStorage } from '@app/shared/misc/peertube-web-storage' |
8 | import { first } from 'rxjs/operators' | ||
8 | 9 | ||
9 | @Injectable() | 10 | @Injectable() |
10 | export class ThemeService { | 11 | export class ThemeService { |
@@ -123,6 +124,7 @@ export class ThemeService { | |||
123 | } | 124 | } |
124 | 125 | ||
125 | this.auth.userInformationLoaded | 126 | this.auth.userInformationLoaded |
127 | .pipe(first()) | ||
126 | .subscribe(() => this.updateCurrentTheme()) | 128 | .subscribe(() => this.updateCurrentTheme()) |
127 | } | 129 | } |
128 | 130 | ||