diff --git a/packages/nc-gui-v2/components/cell/DatePicker.vue b/packages/nc-gui-v2/components/cell/DatePicker.vue
index 3b17503d6b..5553453741 100644
--- a/packages/nc-gui-v2/components/cell/DatePicker.vue
+++ b/packages/nc-gui-v2/components/cell/DatePicker.vue
@@ -1,6 +1,6 @@
@@ -65,10 +65,10 @@ const placeholder = computed(() => (isDateInvalid ? 'Invalid date' : editEnabled
class="!w-full px-1"
:format="dateFormat"
:placeholder="placeholder"
- :allow-clear="!editEnabled"
+ :allow-clear="!readOnly"
:input-read-only="true"
:dropdown-class-name="randomClass"
- :open="editEnabled ? false : open"
+ :open="readOnly ? false : open"
@click="open = !open"
>
diff --git a/packages/nc-gui-v2/components/cell/DateTimePicker.vue b/packages/nc-gui-v2/components/cell/DateTimePicker.vue
index 7aa0100bd2..3233103c4f 100644
--- a/packages/nc-gui-v2/components/cell/DateTimePicker.vue
+++ b/packages/nc-gui-v2/components/cell/DateTimePicker.vue
@@ -1,6 +1,5 @@
@@ -63,9 +63,9 @@ const placeholder = computed(() => (isYearInvalid ? 'Invalid year' : editEnabled
:bordered="false"
class="!w-full px-1"
:placeholder="placeholder"
- :allow-clear="!editEnabled"
+ :allow-clear="!readOnly"
:input-read-only="true"
- :open="editEnabled ? false : open"
+ :open="readOnly ? false : open"
:dropdown-class-name="randomClass"
@click="open = !open"
@change="open = !open"
diff --git a/packages/nc-gui-v2/components/smartsheet/Form.vue b/packages/nc-gui-v2/components/smartsheet/Form.vue
index 79cf0d1d8f..218e3b22f9 100644
--- a/packages/nc-gui-v2/components/smartsheet/Form.vue
+++ b/packages/nc-gui-v2/components/smartsheet/Form.vue
@@ -5,7 +5,6 @@ import { message } from 'ant-design-vue'
import type { Permission } from '~/composables/useUIPermission/rolePermissions'
import {
ActiveViewInj,
- EditModeInj,
IsFormInj,
MetaInj,
computed,
@@ -26,8 +25,6 @@ import {
provide(IsFormInj, ref(true))
-provide(EditModeInj, ref(true))
-
// todo: generate hideCols based on default values
const hiddenCols = ['created_at', 'updated_at']
diff --git a/packages/nc-gui-v2/context/index.ts b/packages/nc-gui-v2/context/index.ts
index d955c93802..86806c0909 100644
--- a/packages/nc-gui-v2/context/index.ts
+++ b/packages/nc-gui-v2/context/index.ts
@@ -18,7 +18,7 @@ export const IsGridInj: InjectionKey = Symbol('is-grid-injection')
export const IsLockedInj: InjectionKey = Symbol('is-locked-injection')
export const CellValueInj: InjectionKey[> = Symbol('cell-value-injection')
export const ActiveViewInj: InjectionKey][> = Symbol('active-view-injection')
-export const ReadonlyInj: InjectionKey = Symbol('readonly-injection')
+export const ReadonlyInj: InjectionKey = Symbol('readonly-injection')
export const ReloadViewDataHookInj: InjectionKey> = Symbol('reload-view-data-injection')
export const FieldsInj: InjectionKey][> = Symbol('fields-injection')
export const ViewListInj: InjectionKey][> = Symbol('view-list-injection')
]