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