|
|
@ -188,21 +188,21 @@ const onDuplicateRow = () => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const save = async () => { |
|
|
|
const save = async () => { |
|
|
|
|
|
|
|
let kanbanClbk |
|
|
|
|
|
|
|
if (activeView.value?.type === ViewTypes.KANBAN) { |
|
|
|
|
|
|
|
kanbanClbk = (row: any, isNewRow: boolean) => { |
|
|
|
|
|
|
|
addOrEditStackRow(row, isNewRow) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
if (isNew.value) { |
|
|
|
if (isNew.value) { |
|
|
|
const data = await _save(rowState.value) |
|
|
|
await _save(rowState.value, undefined, { |
|
|
|
|
|
|
|
kanbanClbk, |
|
|
|
|
|
|
|
}) |
|
|
|
reloadTrigger?.trigger() |
|
|
|
reloadTrigger?.trigger() |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
let kanbanClbk |
|
|
|
|
|
|
|
if (activeView.value?.type === ViewTypes.KANBAN) { |
|
|
|
|
|
|
|
kanbanClbk = (row: any, isNewRow: boolean) => { |
|
|
|
|
|
|
|
addOrEditStackRow(row, isNewRow) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await _save(undefined, undefined, { |
|
|
|
await _save(undefined, undefined, { |
|
|
|
kanbanClbk, |
|
|
|
kanbanClbk, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
_loadRow() |
|
|
|
_loadRow() |
|
|
|
reloadTrigger?.trigger() |
|
|
|
reloadTrigger?.trigger() |
|
|
|
} |
|
|
|
} |
|
|
|