This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-app id="inspire">
|
<v-app id="inspire">
|
||||||
<v-navigation-drawer v-if="showMenu" fixed v-model="drawer" app>
|
<v-navigation-drawer v-if="isAuthenticated" 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>
|
||||||
@@ -81,7 +81,7 @@
|
|||||||
<!--Nav menu links END-->
|
<!--Nav menu links END-->
|
||||||
</v-list>
|
</v-list>
|
||||||
</v-navigation-drawer>
|
</v-navigation-drawer>
|
||||||
<v-toolbar color="indigo" dark fixed app>
|
<v-toolbar v-if="isAuthenticated" color="indigo" dark fixed app>
|
||||||
<v-toolbar-side-icon @click.stop="drawer = !drawer"></v-toolbar-side-icon>
|
<v-toolbar-side-icon @click.stop="drawer = !drawer"></v-toolbar-side-icon>
|
||||||
<v-toolbar-title style="width: 300px" class="ml-0 pl-3">
|
<v-toolbar-title style="width: 300px" class="ml-0 pl-3">
|
||||||
<v-avatar size="32px" tile>
|
<v-avatar size="32px" tile>
|
||||||
@@ -139,8 +139,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
showMenu() {
|
isAuthenticated() {
|
||||||
return this.$route.name !== "login";
|
return (
|
||||||
|
this.$store.state.authenticated === true
|
||||||
|
//this.$route.name !== "login" &&
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
Reference in New Issue
Block a user