diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-09 11:45:19 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | 7cd4d2ba10106c10602c86f74f55743ded588896 (patch) | |
tree | 81f0dd7a7ef763511158d1035f3e09e09d5dcd2c /client/src/app/core | |
parent | 8d76959e11ab7172040853fa4fadaf8d53e6aa12 (diff) | |
download | PeerTube-7cd4d2ba10106c10602c86f74f55743ded588896.tar.gz PeerTube-7cd4d2ba10106c10602c86f74f55743ded588896.tar.zst PeerTube-7cd4d2ba10106c10602c86f74f55743ded588896.zip |
WIP plugins: add theme support
Diffstat (limited to 'client/src/app/core')
-rw-r--r-- | client/src/app/core/plugins/plugin.service.ts | 2 | ||||
-rw-r--r-- | client/src/app/core/server/server.service.ts | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/client/src/app/core/plugins/plugin.service.ts b/client/src/app/core/plugins/plugin.service.ts index 6c567d3ca..7f751f479 100644 --- a/client/src/app/core/plugins/plugin.service.ts +++ b/client/src/app/core/plugins/plugin.service.ts | |||
@@ -33,7 +33,7 @@ export class PluginService { | |||
33 | initializePlugins () { | 33 | initializePlugins () { |
34 | this.server.configLoaded | 34 | this.server.configLoaded |
35 | .subscribe(() => { | 35 | .subscribe(() => { |
36 | this.plugins = this.server.getConfig().plugins | 36 | this.plugins = this.server.getConfig().plugin.registered |
37 | 37 | ||
38 | this.buildScopeStruct() | 38 | this.buildScopeStruct() |
39 | 39 | ||
diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.ts index 80c52164d..7fb95fe4e 100644 --- a/client/src/app/core/server/server.service.ts +++ b/client/src/app/core/server/server.service.ts | |||
@@ -42,7 +42,13 @@ export class ServerService { | |||
42 | css: '' | 42 | css: '' |
43 | } | 43 | } |
44 | }, | 44 | }, |
45 | plugins: [], | 45 | plugin: { |
46 | registered: [] | ||
47 | }, | ||
48 | theme: { | ||
49 | registered: [], | ||
50 | default: 'default' | ||
51 | }, | ||
46 | email: { | 52 | email: { |
47 | enabled: false | 53 | enabled: false |
48 | }, | 54 | }, |