Browse Source

fix: hide treeview menu option if it's empty

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/765/head
Pranav C 3 years ago
parent
commit
e0e9ca6e49
  1. 8
      packages/nc-gui/components/ProjectTreeView.vue

8
packages/nc-gui/components/ProjectTreeView.vue

@ -235,7 +235,13 @@
<div class="action d-flex" @click.stop> <div class="action d-flex" @click.stop>
<v-menu> <v-menu>
<template #activator="{ on }"> <template #activator="{ on }">
<v-icon small v-on="on"> <v-icon
v-if="
_isUIAllowed('treeview-rename-button')||_isUIAllowed('ui-acl')
"
small
v-on="on"
>
mdi-dots-vertical mdi-dots-vertical
</v-icon> </v-icon>
</template> </template>

Loading…
Cancel
Save