feat: polish alpine shell feedback
This commit is contained in:
@@ -1179,7 +1179,9 @@ async function saveOperation(stayOnPage) {
|
||||
try {
|
||||
await persistCurrentDraft(stayOnPage);
|
||||
} catch (error) {
|
||||
alert(error.message || 'Failed to save operation');
|
||||
if (window.CrankUi) {
|
||||
window.CrankUi.error(error.message || 'Failed to save operation', 'Save failed');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user