Mitarbeiter nur noch ausscheiden, nicht löschen (0.26.1)
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user