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