Fixed typo that prevents permissions from being loaded, enable dark mode

if requested.
This commit is contained in:
Ferdinand Thiessen 2020-11-09 04:35:07 +01:00
parent 63e9de01e2
commit 31620f9681
2 changed files with 4 additions and 2 deletions

View File

@ -88,7 +88,9 @@ module.exports = configure(function(ctx) {
framework: { framework: {
iconSet: 'material-icons', // Quasar icon set iconSet: 'material-icons', // Quasar icon set
lang: 'de', // Quasar language pack lang: 'de', // Quasar language pack
config: {}, config: {
dark: 'auto'
},
// Possible values for "importStrategy": // Possible values for "importStrategy":
// * 'auto' - (DEFAULT) Auto-import needed Quasar components & directives // * 'auto' - (DEFAULT) Auto-import needed Quasar components & directives

View File

@ -153,7 +153,7 @@ const actions: ActionTree<UserStateInterface, StateInterface> = {
}, },
getPermissions({ commit, state }, force = false) { getPermissions({ commit, state }, force = false) {
if (!force && state.roles.length > 0) return; if (!force && state.permissions.length > 0) return;
commit('setLoading'); commit('setLoading');
axios axios
.get('/roles/permissions') .get('/roles/permissions')