From 7f501879b1cc3eae1b36c82ca9f818311ab834b3 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sat, 20 Nov 2021 16:48:10 +0100 Subject: [PATCH] properly handle auth shortcut in oder to not break layout on logout --- admin/src/App.vue | 8 +------- admin/src/store/store.js | 3 ++- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/admin/src/App.vue b/admin/src/App.vue index 359b63b3a..40460eda4 100644 --- a/admin/src/App.vue +++ b/admin/src/App.vue @@ -1,21 +1,15 @@ diff --git a/admin/src/store/store.js b/admin/src/store/store.js index 4df9f6f39..7820296c6 100644 --- a/admin/src/store/store.js +++ b/admin/src/store/store.js @@ -1,6 +1,7 @@ import Vuex from 'vuex' import Vue from 'vue' import createPersistedState from 'vuex-persistedstate' +import CONFIG from '../config' Vue.use(Vuex) @@ -33,7 +34,7 @@ const store = new Vuex.Store({ }), ], state: { - token: null, + token: CONFIG.DEBUG_DISABLE_AUTH ? 'validToken' : null, moderator: 'Dertest Moderator', openCreations: 0, },