Skip to content

Instantly share code, notes, and snippets.

@bryansray
Created October 8, 2019 23:55
Show Gist options
  • Save bryansray/c7eb55f1bd7396145e791e2b35c0e9cd to your computer and use it in GitHub Desktop.
Save bryansray/c7eb55f1bd7396145e791e2b35c0e9cd to your computer and use it in GitHub Desktop.
Vuetify Menu with List
<v-menu v-if="isAuthenticated" class="d-block" bottom offset-y nudge-right="10">
<template v-slot:activator="{ on }">
<v-list class="pa-0">
<v-list-item @click.stop="on">
<v-list-item-avatar>
<img :src="jwtPicture" :title="jwtName">
</v-list-item-avatar>
<v-list-item-content>
<v-list-item-title>{{ jwtName }}</v-list-item-title>
</v-list-item-content>
<v-icon>{{"arrow_drop_down"}}</v-icon>
</v-list-item>
</v-list>
</template>
<v-list>
<v-list-item v-if="hasTermsOfService" @click="openTermsOfService()">
<v-list-item-title>Terms of Services</v-list-item-title>
</v-list-item>
<v-list-item @click="logout()">
<v-list-item-title>Logout</v-list-item-title>
</v-list-item>
</v-list>
</v-menu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment