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. 2
      packages/nc-gui/components/project/spreadsheet/components/virtualCell/components/listChildItems.vue

2
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

Loading…
Cancel
Save