Fixed typo that prevents permissions from being loaded, enable dark mode
if requested.
This commit is contained in:
parent
63e9de01e2
commit
31620f9681
|
@ -88,7 +88,9 @@ module.exports = configure(function(ctx) {
|
|||
framework: {
|
||||
iconSet: 'material-icons', // Quasar icon set
|
||||
lang: 'de', // Quasar language pack
|
||||
config: {},
|
||||
config: {
|
||||
dark: 'auto'
|
||||
},
|
||||
|
||||
// Possible values for "importStrategy":
|
||||
// * 'auto' - (DEFAULT) Auto-import needed Quasar components & directives
|
||||
|
|
|
@ -153,7 +153,7 @@ const actions: ActionTree<UserStateInterface, StateInterface> = {
|
|||
},
|
||||
|
||||
getPermissions({ commit, state }, force = false) {
|
||||
if (!force && state.roles.length > 0) return;
|
||||
if (!force && state.permissions.length > 0) return;
|
||||
commit('setLoading');
|
||||
axios
|
||||
.get('/roles/permissions')
|
||||
|
|
Loading…
Reference in New Issue