|
|
|
@ -7,7 +7,6 @@ import {
|
|
|
|
|
computed, |
|
|
|
|
extractPkFromRow, |
|
|
|
|
extractSdkResponseErrorMsg, |
|
|
|
|
getHTMLEncodedText, |
|
|
|
|
message, |
|
|
|
|
populateInsertObject, |
|
|
|
|
ref, |
|
|
|
@ -253,22 +252,8 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for (const key of Object.keys(updateOrInsertObj)) { |
|
|
|
|
// audit
|
|
|
|
|
$api.utils |
|
|
|
|
.auditRowUpdate(id, { |
|
|
|
|
fk_model_id: meta.value.id, |
|
|
|
|
column_name: key, |
|
|
|
|
row_id: id, |
|
|
|
|
value: getHTMLEncodedText(updateOrInsertObj[key]), |
|
|
|
|
prev_value: getHTMLEncodedText(row.value.oldRow[key]), |
|
|
|
|
}) |
|
|
|
|
.then(async () => { |
|
|
|
|
/** load latest comments/audit if right drawer is open */ |
|
|
|
|
if (commentsDrawer.value) { |
|
|
|
|
await loadCommentsAndLogs() |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
if (commentsDrawer.value) { |
|
|
|
|
await loadCommentsAndLogs() |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
// No columns to update
|
|
|
|
|