aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core/theme/theme.service.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-27 09:59:10 +0200
committerChocobozzz <me@florianbigard.com>2022-06-27 09:59:10 +0200
commit00fe5d61369b1769c62686e5bd8e6e666f867598 (patch)
tree1130aa8a764b9e2276344243290d93e84ff75baa /client/src/app/core/theme/theme.service.ts
parentb713976afbe47d06941222ad462bc68b3decd723 (diff)
downloadPeerTube-00fe5d61369b1769c62686e5bd8e6e666f867598.tar.gz
PeerTube-00fe5d61369b1769c62686e5bd8e6e666f867598.tar.zst
PeerTube-00fe5d61369b1769c62686e5bd8e6e666f867598.zip
Fix setting theme in client
Diffstat (limited to 'client/src/app/core/theme/theme.service.ts')
-rw-r--r--client/src/app/core/theme/theme.service.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/app/core/theme/theme.service.ts b/client/src/app/core/theme/theme.service.ts
index da6f2442a..40939ecb8 100644
--- a/client/src/app/core/theme/theme.service.ts
+++ b/client/src/app/core/theme/theme.service.ts
@@ -49,9 +49,9 @@ export class ThemeService {
49 return $localize`Light/Orange` 49 return $localize`Light/Orange`
50 } 50 }
51 51
52 getAvailableThemeLabels () { 52 buildAvailableThemes () {
53 return this.serverConfig.theme.registered 53 return this.serverConfig.theme.registered
54 .map(t => capitalizeFirstLetter(t.name)) 54 .map(t => ({ id: t.name, label: capitalizeFirstLetter(t.name) }))
55 } 55 }
56 56
57 private injectThemes (themes: ServerConfigTheme[], fromLocalStorage = false) { 57 private injectThemes (themes: ServerConfigTheme[], fromLocalStorage = false) {