Skip to content

Commit

Permalink
feat(#303): Add admin menu to app main drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
tholulomo committed Jun 13, 2023
1 parent 8aeecb2 commit 9d15124
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/src/components/Drawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,15 @@
</router-link>
</md-list>
</md-list-item>
<md-toolbar class="md-transparent u--font-emph-l u_margin-top-small" md-elevation="0" v-if="isAuth && isAdmin" ><small>Admin</small></md-toolbar>
<md-divider v-if="isAuth && isAdmin" ></md-divider>

<router-link v-if="isAuth && isAdmin" :to="'/portal'" v-slot="{navigate, href}" custom>
<md-list-item @click="navigate" :href="href">
<md-icon class="utility-navfonticon">admin_panel_settings</md-icon>
<span class="md-list-item-text utility-navfont">Admin Center</span>
</md-list-item>
</router-link>
</md-list>

<md-list class="utility-transparentbg">
Expand Down

0 comments on commit 9d15124

Please sign in to comment.