made location.reload if user loggedin is admin (need to display admin menu)

This commit is contained in:
2019-05-20 18:49:31 +02:00
parent 9613eabcbc
commit a8c8d04408
4 changed files with 26 additions and 14 deletions

View File

@ -46,7 +46,7 @@ export default {
},
methods: {
...mapActions({
getToken: 'User/getToken'
userLogin: 'User/userLogin'
}),
// usernameInputHandler(input) {
@ -57,7 +57,7 @@ export default {
// },
login () {
this.getToken({
this.userLogin({
mail: this.mail,
pass: this.password
})

View File

@ -6,6 +6,7 @@
<a href="/admin/content/materials"
v-if="isAdmin"
class="mdi mdi-settings"
title="admin"
></a>
<a href="/user/logout"
@click.prevent="onLogout()"