mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
WebUI: Use classlist property to set cell class in trackers table
This commit is contained in:
parent
d79dc86d00
commit
7f0134108a
1 changed files with 5 additions and 1 deletions
|
@ -2058,7 +2058,11 @@ window.qBittorrent.DynamicTable ??= (() => {
|
||||||
break;
|
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.textContent = status;
|
||||||
td.title = status;
|
td.title = status;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue