fix: improve finish handler error handling for unavailable envelopes
- Update FINISH flow to handle status codes 409 and 423 - Reload page on 423 responses - Show proper warning when envelope is no longer available (409)
This commit is contained in:
@@ -255,7 +255,7 @@ class App {
|
||||
});
|
||||
|
||||
if (!res.ok) {
|
||||
if (res.status === 403) {
|
||||
if (res.status === 409) {
|
||||
Swal.fire({
|
||||
title: 'Warnung',
|
||||
text: 'Umschlag ist nicht mehr verfügbar.',
|
||||
@@ -263,6 +263,9 @@ class App {
|
||||
})
|
||||
return false
|
||||
}
|
||||
else if (res.status === 423) {
|
||||
location.reload();
|
||||
}
|
||||
else {
|
||||
throw new Error()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user