diff --git a/packages/nc-gui/components/smartsheet/expanded-form/Header.vue b/packages/nc-gui/components/smartsheet/expanded-form/Header.vue
index a26a708ae8..e0178eabbf 100644
--- a/packages/nc-gui/components/smartsheet/expanded-form/Header.vue
+++ b/packages/nc-gui/components/smartsheet/expanded-form/Header.vue
@@ -1,6 +1,6 @@
@@ -127,7 +149,37 @@ useEventListener(document, 'keydown', async (e: KeyboardEvent) => {
-
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/nc-gui/components/smartsheet/expanded-form/MoreActions.vue b/packages/nc-gui/components/smartsheet/expanded-form/MoreActions.vue
index a837e696c6..b60f95f6e5 100644
--- a/packages/nc-gui/components/smartsheet/expanded-form/MoreActions.vue
+++ b/packages/nc-gui/components/smartsheet/expanded-form/MoreActions.vue
@@ -1,8 +1,8 @@
diff --git a/packages/nc-gui/composables/useViewData.ts b/packages/nc-gui/composables/useViewData.ts
index b6f440d5e6..efdc331614 100644
--- a/packages/nc-gui/composables/useViewData.ts
+++ b/packages/nc-gui/composables/useViewData.ts
@@ -33,6 +33,7 @@ const formatData = (list: Row[]) =>
export function useViewData(
meta: Ref | ComputedRef,
+ // meta: Ref | undefined> | ComputedRef | undefined>,
viewMeta: Ref | ComputedRef<(ViewType & { id: string }) | undefined>,
where?: ComputedRef,
) {
@@ -340,6 +341,28 @@ export function useViewData(
$e('a:grid:pagination')
}
+
+ // async function deleteRow(row: Row) {
+ // try {
+ // if (!row.rowMeta.new) {
+ // const id = (meta?.value?.columns as ColumnType[])
+ // ?.filter((c) => c.pk)
+ // .map((c) => row.row[c.title!])
+ // .join('___')
+
+ // const deleted = await deleteRowById(id as string)
+ // if (!deleted) {
+ // return
+ // }
+ // }
+
+ // // remove deleted row from state
+ // removeRowFromTargetStack(row)
+ // } catch (e: any) {
+ // message.error(`${t('msg.error.deleteRowFailed')}: ${await extractSdkResponseErrorMsg(e)}`)
+ // }
+ // }
+
async function deleteRowById(id: string) {
if (!id) {
throw new Error("Delete not allowed for table which doesn't have primary Key")