From 1d64b7621176e25fedd98553c282c56242d38571 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Tue, 14 Feb 2017 22:21:23 +0100 Subject: [PATCH] Add basic configuration module, make it work for title and theme. --- src/App.js | 3 +- src/App.vue | 2 +- .../style_switcher/style_switcher.js | 5 +--- src/main.js | 13 +++++--- src/modules/config.js | 30 +++++++++++++++++++ static/config.json | 4 +++ 6 files changed, 47 insertions(+), 10 deletions(-) create mode 100644 src/modules/config.js create mode 100644 static/config.json diff --git a/src/App.js b/src/App.js index 14a41af0..c326ddfc 100644 --- a/src/App.js +++ b/src/App.js @@ -16,7 +16,8 @@ export default { }), computed: { currentUser () { return this.$store.state.users.currentUser }, - style () { return { 'background-image': `url(${this.currentUser.background_image})` } } + style () { return { 'background-image': `url(${this.currentUser.background_image})` } }, + sitename () { return this.$store.state.config.name } }, methods: { activatePanel (panelName) { diff --git a/src/App.vue b/src/App.vue index 5d5463fb..d2b07d2b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,7 +3,7 @@