mirror of
https://github.com/directus/directus.git
synced 2026-02-19 10:14:33 -05:00
Don't navigate on save error
This commit is contained in:
@@ -379,13 +379,21 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
async function saveAndQuit() {
|
||||
await save();
|
||||
router.push(`/files`);
|
||||
try {
|
||||
await save();
|
||||
router.push(`/files`);
|
||||
} catch {
|
||||
// `save` will show unexpected error dialog
|
||||
}
|
||||
}
|
||||
|
||||
async function saveAndStay() {
|
||||
await save();
|
||||
revisionsDrawerDetail.value?.$data?.refresh?.();
|
||||
try {
|
||||
await save();
|
||||
revisionsDrawerDetail.value?.$data?.refresh?.();
|
||||
} catch {
|
||||
// `save` will show unexpected error dialog
|
||||
}
|
||||
}
|
||||
|
||||
async function saveAsCopyAndNavigate() {
|
||||
|
||||
Reference in New Issue
Block a user