Fix jellyfin sync config merging

This commit is contained in:
Dymas
2026-05-26 11:42:21 +02:00
parent 4c430e1982
commit bf4fdc79f5
3 changed files with 44 additions and 5 deletions
+2 -1
View File
@@ -757,9 +757,10 @@ CONFIG_HTML = r"""<!doctype html>
const rootGroup = document.createElement("div");
rootGroup.className = "browser-roots";
for (const rootPath of roots) {
const active = data.path === rootPath || String(data.path || "").startsWith(`${rootPath}/`);
const button = document.createElement("button");
button.type = "button";
button.className = `ghost${rootPath === data.path ? " active" : ""}`;
button.className = `ghost${active ? " active" : ""}`;
button.textContent = rootPath;
button.addEventListener("click", () => loadPathBrowser(rootPath));
rootGroup.appendChild(button);