mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 16:07:23 -06:00
WebUI: Clear properties panel when torrent no longer selected
PR #21654.
This commit is contained in:
committed by
GitHub
parent
e0431e3ffb
commit
c3c91be578
@@ -32,7 +32,8 @@ window.qBittorrent ??= {};
|
||||
window.qBittorrent.PropPeers ??= (() => {
|
||||
const exports = () => {
|
||||
return {
|
||||
updateData: updateData
|
||||
updateData: updateData,
|
||||
clear: clear
|
||||
};
|
||||
};
|
||||
|
||||
@@ -53,7 +54,6 @@ window.qBittorrent.PropPeers ??= (() => {
|
||||
syncTorrentPeersLastResponseId = 0;
|
||||
torrentPeersTable.clear();
|
||||
clearTimeout(loadTorrentPeersTimer);
|
||||
loadTorrentPeersTimer = loadTorrentPeersData.delay(window.qBittorrent.Client.getSyncMainDataInterval());
|
||||
return;
|
||||
}
|
||||
const url = new URI("api/v2/sync/torrentPeers");
|
||||
@@ -112,6 +112,10 @@ window.qBittorrent.PropPeers ??= (() => {
|
||||
loadTorrentPeersData();
|
||||
};
|
||||
|
||||
const clear = function() {
|
||||
torrentPeersTable.clear();
|
||||
};
|
||||
|
||||
const torrentPeersContextMenu = new window.qBittorrent.ContextMenu.ContextMenu({
|
||||
targets: "#torrentPeersTableDiv",
|
||||
menu: "torrentPeersMenu",
|
||||
|
||||
Reference in New Issue
Block a user