Browse Source

feat: remove delete confirm dialog

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

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

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

Loading…
Cancel
Save