Browse Source

feat(gui-v2): show bt add/link icon in shared form view

re #3409

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3413/head
Pranav C 2 years ago
parent
commit
b585a5baff
  1. 4
      packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue

4
packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue

@ -34,6 +34,8 @@ const active = inject(ActiveCellInj)!
const readOnly = inject(ReadonlyInj, false) const readOnly = inject(ReadonlyInj, false)
const isForm = inject(IsFormInj, ref(false))
const isLocked = inject(IsLockedInj) const isLocked = inject(IsLockedInj)
const { isUIAllowed } = useUIPermission() const { isUIAllowed } = useUIPermission()
@ -79,7 +81,7 @@ const unlinkRef = async (rec: Record<string, any>) => {
</template> </template>
</div> </div>
<div <div
v-if="!readOnly && !isLocked && isUIAllowed('xcDatatableEditable')" v-if="!readOnly && !isLocked && (isUIAllowed('xcDatatableEditable') || isForm)"
class="flex justify-end gap-1 min-h-[30px] items-center" class="flex justify-end gap-1 min-h-[30px] items-center"
> >
<component <component

Loading…
Cancel
Save