Mitarbeiter nur noch ausscheiden, nicht löschen (0.26.1)
Some checks failed
Prüfung / tests (push) Has been cancelled
Prüfung / container (push) Has been cancelled

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
Claude
2026-10-22 07:10:36 +00:00
parent 45c21943bf
commit b1a196a4d7
6 changed files with 18 additions and 4 deletions

View File

@@ -196,8 +196,8 @@ export function bestaetigen(frage: string, o: { hinweis?: string; ja?: string; n
});
}
export async function bearbeiten(pfad: string, titel: string, felder: Feld[], zeile: Zeile | null, vorgaben: Zeile = {}): Promise<boolean> {
const e = await dialog(titel, felder, zeile ?? vorgaben, !!zeile);
export async function bearbeiten(pfad: string, titel: string, felder: Feld[], zeile: Zeile | null, vorgaben: Zeile = {}, loeschbar = true): Promise<boolean> {
const e = await dialog(titel, felder, zeile ?? vorgaben, !!zeile && loeschbar);
if (!e) return false;
let antwort: Zeile | undefined;
if (e.aktion === "loeschen") await api(`${pfad}/${zeile!.id}`, "DELETE");