Browse Source

fix: hide unlink option based on role

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/765/head
Pranav C 3 years ago
parent
commit
5367f82cf8
  1. 4
      packages/nc-gui/components/project/spreadsheet/components/virtualCell/components/listChildItems.vue

4
packages/nc-gui/components/project/spreadsheet/components/virtualCell/components/listChildItems.vue

@ -51,7 +51,7 @@
> >
<div class="remove-child-icon d-flex align-center"> <div class="remove-child-icon d-flex align-center">
<x-icon <x-icon
v-if="(isForm || !isPublic&& _isUIAllowed('xcDatatableEditable')) && !readOnly " v-if="((isPublic && isForm) || (!isPublic && _isUIAllowed('xcDatatableEditable'))) && !readOnly "
:tooltip="`Unlink this '${meta._tn}' from '${parentMeta._tn}'`" :tooltip="`Unlink this '${meta._tn}' from '${parentMeta._tn}'`"
:color="['error','grey']" :color="['error','grey']"
small small
@ -61,7 +61,7 @@
mdi-link-variant-remove mdi-link-variant-remove
</x-icon> </x-icon>
<x-icon <x-icon
v-if="!isPublic && !mm && !bt && !readOnly&& _isUIAllowed('xcDatatableEditable')" v-if="!isPublic && !mm && !bt && !readOnly && _isUIAllowed('xcDatatableEditable')"
:tooltip="`Delete row in '${meta._tn}'`" :tooltip="`Delete row in '${meta._tn}'`"
:color="['error','grey']" :color="['error','grey']"
small small

Loading…
Cancel
Save