Merge pull request #22282 from skomerko/webui-v51-fixes

WebUI v5.1 fixes
This commit is contained in:
Chocobo1
2025-02-21 20:44:42 +08:00
committed by GitHub
10 changed files with 22 additions and 14 deletions

View File

@@ -1750,7 +1750,7 @@ window.qBittorrent.DynamicTable ??= (() => {
td.append(span);
}
span.style.backgroundImage = `url('images/flags/${country_code ?? "xx"}.svg')`;
span.style.backgroundImage = `url('images/flags/${country_code || "xx"}.svg')`;
span.textContent = country;
td.title = country;
};
@@ -2053,7 +2053,11 @@ window.qBittorrent.DynamicTable ??= (() => {
break;
}
td.className = statusClass;
for (const c of [...td.classList]) {
if (c.startsWith("tracker"))
td.classList.remove(c);
}
td.classList.add(statusClass);
td.textContent = status;
td.title = status;
};