This commit is contained in:
Ruben Fiszel
2025-07-18 22:45:48 +00:00
parent eab45e3109
commit 3a1c7b124d
4 changed files with 12 additions and 12 deletions

View File

@@ -55,14 +55,14 @@
undefined,
{ ...ndata },
{
done: (x) => {
onDone: (_x) => {
sendUserToast('Row deleted', false)
dispatch('deleted')
},
cancel: () => {
onCancel: () => {
sendUserToast('Error deleting row', true)
},
error: () => {
onError: () => {
sendUserToast('Error updating row', true)
}
}

View File

@@ -47,14 +47,14 @@
if (runnableComponent) {
await runnableComponent?.runComponent(undefined, undefined, undefined, values, {
done: (x) => {
onDone: (_x) => {
dispatch('insert')
sendUserToast('Row inserted', false)
},
cancel: () => {
onCancel: () => {
sendUserToast('Error inserting row', true)
},
error: () => {
onError: () => {
sendUserToast('Error inserting row', true)
}
})

View File

@@ -58,13 +58,13 @@
undefined,
{ value_to_update: valueToUpdate, ...ndata },
{
done: (x) => {
onDone: (x) => {
sendUserToast('Value updated', false)
},
cancel: () => {
onCancel: () => {
sendUserToast('Error updating value', true)
},
error: () => {
onError: () => {
sendUserToast('Error updating value', true)
}
}

View File

@@ -110,7 +110,7 @@
}
runnableComponent?.runComponent(undefined, undefined, undefined, currentParams, {
done: (items) => {
onDone: (items) => {
let lastRow = -1
if (datasource?.rowCount && datasource.rowCount <= params.endRow) {
@@ -139,10 +139,10 @@
params.failCallback()
}
},
cancel: () => {
onCancel: () => {
params.failCallback()
},
error: () => {
onError: () => {
params.failCallback()
}
})