From 7cd4d2ba10106c10602c86f74f55743ded588896 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 9 Jul 2019 11:45:19 +0200 Subject: WIP plugins: add theme support --- client/src/app/core/plugins/plugin.service.ts | 2 +- client/src/app/core/server/server.service.ts | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'client/src/app/core') 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 { initializePlugins () { this.server.configLoaded .subscribe(() => { - this.plugins = this.server.getConfig().plugins + this.plugins = this.server.getConfig().plugin.registered this.buildScopeStruct() 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 { css: '' } }, - plugins: [], + plugin: { + registered: [] + }, + theme: { + registered: [], + default: 'default' + }, email: { enabled: false }, -- cgit v1.2.3