This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<v-app id="inspire">
|
||||
<v-navigation-drawer fixed v-model="drawer" app>
|
||||
<v-navigation-drawer v-if="showMenu" fixed v-model="drawer" app>
|
||||
<v-list dense>
|
||||
<v-list-tile to="/">
|
||||
<v-list-tile-action>
|
||||
@@ -78,8 +78,6 @@
|
||||
<v-list-tile-title>Log off</v-list-tile-title>
|
||||
</v-list-tile-content>
|
||||
</v-list-tile>
|
||||
<!-- <router-link v-if="authenticated" to="/login" v-on:click.native="logout()" replace>Logout</router-link> -->
|
||||
|
||||
<!--Nav menu links END-->
|
||||
</v-list>
|
||||
</v-navigation-drawer>
|
||||
@@ -140,6 +138,11 @@ export default {
|
||||
this.$store.state.authenticated = false;
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
showMenu() {
|
||||
return this.$route.name !== "login";
|
||||
}
|
||||
},
|
||||
props: {
|
||||
source: String
|
||||
}
|
||||
|
||||
@@ -53,7 +53,8 @@ export default {
|
||||
auth
|
||||
.authenticate(this.input.username, this.input.password)
|
||||
.then(response => {
|
||||
logger.log("LOGIN.VUE::login() -> SUCCESS", response);
|
||||
//logger.log("LOGIN.VUE::login() -> SUCCESS", response);
|
||||
this.$router.replace({ name: "home" });
|
||||
})
|
||||
.catch(function(error) {
|
||||
logger.log("LOGIN.VUE::login() !CATCH! -> Request failed", error);
|
||||
|
||||
Reference in New Issue
Block a user