Frontend: Fehler beim Aufbau der Kacheln behoben (rec vor Deklaration verwendet)

This commit is contained in:
Joachim Hummel committed 2026-10-18 13:37:48 +02:00
1 parent 6b2cc45550
commit 304c202f46
1 file changed
+2 -1
+2 -1
View File
@@ -179,7 +179,7 @@ function makeTile(name, mode, hasSetup) {
}, "alt"); }, "alt");
actions.append(setup); actions.append(setup);
} }
const o = { name, mode, t, img, state, ovText, rec, tl: { enabled: false, interval: 300 }, stopped: false, online: null, timer: null, retry: null }; const o = { name, mode, t, img, state, ovText, rec: null, tl: { enabled: false, interval: 300 }, stopped: false, online: null, timer: null, retry: null };
if (mode === "live") { if (mode === "live") {
actions.append( actions.append(
btn("Start", "play", () => startTile(o), "ok"), btn("Start", "play", () => startTile(o), "ok"),
@@ -188,6 +188,7 @@ function makeTile(name, mode, hasSetup) {
} }
const rec = btn("Timelapse aus", "rec", () => setTimelapse(name, { enabled: !tiles[name].tl.enabled }), "alt"); const rec = btn("Timelapse aus", "rec", () => setTimelapse(name, { enabled: !tiles[name].tl.enabled }), "alt");
const gallery = btn("Galerie", "film", () => openTimelapse(name), "alt"); const gallery = btn("Galerie", "film", () => openTimelapse(name), "alt");
o.rec = rec;
actions.append(snap, rec, gallery, full); actions.append(snap, rec, gallery, full);
cap.append(el("span", "dot"), link, state, el("span", "sp"), actions); cap.append(el("span", "dot"), link, state, el("span", "sp"), actions);
t.append(view, cap); t.append(view, cap);