Skip to content
Snippets Groups Projects
Verified Commit 9f18b950 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed #245: admin menu not showing after login

parent 4c81de92
No related branches found
No related tags found
No related merge requests found
Fixed admin menu not showing after login (#245)
...@@ -272,7 +272,7 @@ export default { ...@@ -272,7 +272,7 @@ export default {
this.scrollToCurrent() this.scrollToCurrent()
} }
}, },
'$store.state.availablePermissions': { '$store.state.auth.availablePermissions': {
handler () { handler () {
this.fetchNotificationsCount() this.fetchNotificationsCount()
}, },
......
...@@ -79,8 +79,6 @@ export default { ...@@ -79,8 +79,6 @@ export default {
username: this.credentials.username, username: this.credentials.username,
password: this.credentials.password password: this.credentials.password
} }
// We need to pass the component's this context
// to properly make use of http in the auth service
this.$store.dispatch('auth/login', { this.$store.dispatch('auth/login', {
credentials, credentials,
next: '/library', next: '/library',
......
...@@ -25,7 +25,11 @@ export default { ...@@ -25,7 +25,11 @@ export default {
state.username = '' state.username = ''
state.token = '' state.token = ''
state.tokenData = {} state.tokenData = {}
state.availablePermissions = {} state.availablePermissions = {
federation: false,
library: false,
upload: false
}
}, },
profile: (state, value) => { profile: (state, value) => {
state.profile = value state.profile = value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment