logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe
commit: cd0925747dd4657747ed3bdb242446297676b5cf
parent: cdc90f8edcfa705741151d975fdf59a954687137
Author: Roger Braun <roger@rogerbraun.net>
Date:   Fri, 17 Feb 2017 18:21:02 +0100

Show current theme in theme selector.

Diffstat:

Msrc/components/style_switcher/style_switcher.js10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/components/style_switcher/style_switcher.js b/src/components/style_switcher/style_switcher.js @@ -1,8 +1,10 @@ export default { - data: () => ({ - availableStyles: [], - selected: false - }), + data () { + return { + availableStyles: [], + selected: this.$store.state.config.theme + } + }, created () { const self = this window.fetch('/static/css/themes.json')