fix: handle rejected documents correctly with info alert and auto-reload
This commit is contained in:
@@ -264,7 +264,15 @@ class App {
|
||||
return false
|
||||
}
|
||||
else if (res.status === 423) {
|
||||
location.reload();
|
||||
Swal.fire({
|
||||
title: 'Info',
|
||||
text: 'Dokument wurde von einem Empfänger abgelehnt. Sie werden weitergeleitet...',
|
||||
icon: 'info',
|
||||
timer: 2000,
|
||||
showConfirmButton: false
|
||||
}).then(() => {
|
||||
location.reload();
|
||||
});
|
||||
}
|
||||
else {
|
||||
throw new Error()
|
||||
|
||||
Reference in New Issue
Block a user