Basic new

This commit is contained in:
Simon Martens
2026-01-09 14:25:34 +01:00
parent ecfd3579a5
commit 8903da2350
19 changed files with 797 additions and 180 deletions

View File

@@ -2593,6 +2593,10 @@ class Gt extends HTMLElement {
const n = (s == null ? void 0 : s.error) || `Speichern fehlgeschlagen (${i.status}).`;
throw new Error(n);
}
if (s != null && s.redirect) {
window.location.assign(s.redirect);
return;
}
await this._reloadForm((s == null ? void 0 : s.message) || "Änderungen gespeichert."), this._clearStatus();
} catch (i) {
this._showStatus(i instanceof Error ? i.message : "Speichern fehlgeschlagen.", "error");