Browse Source

Merge pull request #3413 from nocodb/fix/3409-show-bt-add-icon-in-form

fix(gui-v2): show bt add/link icon in shared form view
pull/3421/head
Raju Udava 2 years ago committed by GitHub
parent
commit
bf001ca259
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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 isForm = inject(IsFormInj, ref(false))
const isLocked = inject(IsLockedInj)
const { isUIAllowed } = useUIPermission()
@ -79,7 +81,7 @@ const unlinkRef = async (rec: Record<string, any>) => {
</template>
</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"
>
<component

Loading…
Cancel
Save