Browse Source

feat: remove delete confirm dialog

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5869/head
Pranav C 1 year ago
parent
commit
5864c9806a
  1. 9
      packages/nc-gui/components/smartsheet/Grid.vue

9
packages/nc-gui/components/smartsheet/Grid.vue

@ -798,20 +798,11 @@ const closeAddColumnDropdown = (scrollToLastCol = false) => {
}
const confirmDeleteRow = (row: number) => {
Modal.confirm({
title: `Do you want to delete this row?`,
wrapClassName: 'nc-modal-row-delete',
okText: 'Yes',
okType: 'danger',
cancelText: 'No',
onOk() {
try {
deleteRow(row)
} catch (e: any) {
message.error(e.message)
}
},
})
}
const deleteSelectedRangeOfRows = () => {

Loading…
Cancel
Save