homelab: Rueckweg auch als Kurzform (snapshot/sicherung/keiner) fuer die Update-Liste

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hitonabi
2026-09-24 20:26:32 +02:00
co-authored by Claude Opus 5.5
parent 37179b8864
commit d2f699ac69
4 changed files with 14 additions and 4 deletions
+2 -2
View File
@@ -59,8 +59,8 @@ export function rueckwegText(ziel: ZielStand): string {
function rueckwegAusText(text: string | null): "snapshot" | "sicherung" | "keiner" {
const t = (text ?? "").toLowerCase()
if (t.includes("snapshot vor")) return "snapshot"
if (t.includes("sicherung vor")) return "sicherung"
if (t.startsWith("snapshot vor")) return "snapshot"
if (t.startsWith("sicherung")) return "sicherung"
return "keiner"
}