From 959beb0c40d6a9d268e302540d3a3fe388eedc24 Mon Sep 17 00:00:00 2001 From: Maurits Lourens Date: Tue, 18 Jan 2022 09:53:15 +0100 Subject: [PATCH] use deleteColName when deleting a column --- .../backend/DataTable/modals/CreateEditColumn.svelte | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte index 752f291019..01b1fdda97 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte @@ -127,6 +127,7 @@ } function deleteColumn() { + field.name = deleteColName if (field.name === $tables.selected.primaryDisplay) { notifications.error("You cannot delete the display column") } else { @@ -470,16 +471,16 @@ onOk={deleteColumn} onCancel={hideDeleteDialog} title="Confirm Deletion" - disabled={deleteColName !== field.name} + disabled={deleteColName !== originalName} >

- Are you sure you wish to delete the column {field.name}? + Are you sure you wish to delete the column {originalName}? Your data will be deleted and this action cannot be undone - enter the column name to confirm.