Browse Source

feat: change record on delete

pull/6464/head
DarkPhoenix2704 1 year ago
parent
commit
360b045beb
  1. 8
      packages/nc-gui/components/smartsheet/expanded-form/index.vue

8
packages/nc-gui/components/smartsheet/expanded-form/index.vue

@ -320,8 +320,14 @@ const onDeleteRowClick = () => {
const onConfirmDeleteRowClick = async () => {
showDeleteRowModal.value = false
await deleteRowById(primaryKey.value)
await reloadTrigger.trigger()
message.success('Row deleted')
if (!props.lastRow) {
await onNext()
} else if (!props.firstRow) {
emits('prev')
} else {
onClose()
}
}
</script>

Loading…
Cancel
Save