mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
Merge pull request #22282 from skomerko/webui-v51-fixes
WebUI v5.1 fixes
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user