diff --git a/packages/nc-gui-v2/components/smartsheet-header/Cell.vue b/packages/nc-gui-v2/components/smartsheet-header/Cell.vue index b03027765b..90fdef48a7 100644 --- a/packages/nc-gui-v2/components/smartsheet-header/Cell.vue +++ b/packages/nc-gui-v2/components/smartsheet-header/Cell.vue @@ -2,7 +2,7 @@ import type { ColumnType, TableType } from 'nocodb-sdk' import type { Ref } from 'vue' import { inject, toRef } from 'vue' -import { ColumnInj, MetaInj } from '~/context' +import { ColumnInj, IsFormInj, MetaInj } from '~/context' import { useProvideColumnCreateStore } from '#imports' const props = defineProps<{ column: ColumnType & { meta: any }; hideMenu?: boolean }>() @@ -11,6 +11,7 @@ const hideMenu = toRef(props, 'hideMenu') provide(ColumnInj, column) const meta = inject(MetaInj) +const isForm = inject(IsFormInj, false) // instantiate column update store useProvideColumnCreateStore(meta as Ref, column) @@ -23,7 +24,7 @@ useProvideColumnCreateStore(meta as Ref, column) diff --git a/packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue b/packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue index 589e9963bf..737f2501b3 100644 --- a/packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue +++ b/packages/nc-gui-v2/components/smartsheet-header/VirtualCell.vue @@ -5,7 +5,7 @@ import { toRef } from 'vue' import { $computed } from 'vue/macros' import type { Ref } from 'vue' import { useMetas } from '~/composables' -import { ColumnInj, MetaInj } from '~/context' +import { ColumnInj, IsFormInj, MetaInj } from '~/context' import { provide, useProvideColumnCreateStore } from '#imports' const props = defineProps<{ column: ColumnType & { meta: any }; hideMenu?: boolean }>() @@ -15,6 +15,7 @@ const hideMenu = toRef(props, 'hideMenu') provide(ColumnInj, column) const { metas } = useMetas() const meta = inject(MetaInj) +const isForm = inject(IsFormInj, false) const { isLookup, isBt, isRollup, isMm, isHm, isFormula } = useVirtualCell(column) @@ -100,7 +101,7 @@ useProvideColumnCreateStore(meta as Ref, column)