diff --git a/packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue b/packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue index b9da198501..7d838ea275 100644 --- a/packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue +++ b/packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue @@ -11,6 +11,7 @@ import { defineAsyncComponent, inject, ref, + useProject, useProvideLTARStore, useSmartsheetRowStoreOrThrow, } from '#imports' @@ -31,10 +32,12 @@ const row = inject(RowInj)! const active = inject(ActiveCellInj)! -const readonly = inject(ReadonlyInj, false) +const readOnly = inject(ReadonlyInj, false) const isLocked = inject(IsLockedInj) +const { isSharedBase } = useProject() + const listItemsDlg = ref(false) const { state, isNew, removeLTARRef } = useSmartsheetRowStoreOrThrow() @@ -74,7 +77,7 @@ const unlinkRef = async (rec: Record) => { -
+
>, @@ -91,13 +94,13 @@ const unlinkRef = async (rec: Record) => {
-
+
diff --git a/packages/nc-gui-v2/components/virtual-cell/ManyToMany.vue b/packages/nc-gui-v2/components/virtual-cell/ManyToMany.vue index ea5ec4a5eb..b382250417 100644 --- a/packages/nc-gui-v2/components/virtual-cell/ManyToMany.vue +++ b/packages/nc-gui-v2/components/virtual-cell/ManyToMany.vue @@ -12,6 +12,7 @@ import { computed, inject, ref, + useProject, useProvideLTARStore, useSmartsheetRowStoreOrThrow, } from '#imports' @@ -32,7 +33,7 @@ const reloadTrigger = inject(ReloadViewDataHookInj)! const isForm = inject(IsFormInj) -const readonly = inject(ReadonlyInj, false) +const readOnly = inject(ReadonlyInj, false) const isLocked = inject(IsLockedInj) @@ -40,6 +41,8 @@ const listItemsDlg = ref(false) const childListDlg = ref(false) +const { isSharedBase } = useProject() + const { state, isNew, removeLTARRef } = useSmartsheetRowStoreOrThrow() const { loadRelatedTableMeta, relatedTablePrimaryValueProp, unlink } = useProvideLTARStore( column as Ref>, @@ -91,14 +94,14 @@ const unlinkRef = async (rec: Record) => {
-
+
diff --git a/packages/nc-gui-v2/components/virtual-cell/components/ItemChip.vue b/packages/nc-gui-v2/components/virtual-cell/components/ItemChip.vue index a98f18b660..ff80046c16 100644 --- a/packages/nc-gui-v2/components/virtual-cell/components/ItemChip.vue +++ b/packages/nc-gui-v2/components/virtual-cell/components/ItemChip.vue @@ -1,5 +1,14 @@