Change layout
This commit is contained in:
@@ -2,14 +2,25 @@
|
||||
<v-app-bar fixed app color="primary" dark>
|
||||
<v-btn to="/" text rounded>Simple Notes</v-btn>
|
||||
<v-spacer />
|
||||
<div v-if="isAuthenticated">
|
||||
<v-btn to="/notes" class="mr-2" text rounded>My notes</v-btn>
|
||||
<v-btn class="mr-2" outlined>
|
||||
Welcome {{ loggedInUser.username }}
|
||||
</v-btn>
|
||||
<v-btn outlined @click="logout">Logout</v-btn>
|
||||
</div>
|
||||
<v-btn v-else to="/account" text rounded>Account</v-btn>
|
||||
<v-menu bottom left>
|
||||
<template v-slot:activator="{ on }">
|
||||
<v-btn icon v-on="on">
|
||||
<v-icon>mdi-dots-vertical</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
<v-list>
|
||||
<v-list-item v-if="isAuthenticated" to="/notes">
|
||||
My notes
|
||||
</v-list-item>
|
||||
<v-list-item v-if="isAuthenticated" @click="logout">
|
||||
Logout
|
||||
</v-list-item>
|
||||
<v-list-item v-else>
|
||||
<v-btn to="/account" text rounded>Account</v-btn>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
</v-app-bar>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user