mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 14:23:35 -07:00
WebUI: Show 'Edit tracker URL...' only when one tracker is selected
This commit is contained in:
parent
1ca33d45ba
commit
58533114af
1 changed files with 5 additions and 3 deletions
|
@ -138,8 +138,6 @@ window.qBittorrent.PropTrackers ??= (() => {
|
|||
addTrackerFN();
|
||||
},
|
||||
EditTracker: (element, ref) => {
|
||||
// only allow editing of one row
|
||||
element.firstElementChild.click();
|
||||
editTrackerFN(element);
|
||||
},
|
||||
RemoveTracker: (element, ref) => {
|
||||
|
@ -162,7 +160,11 @@ window.qBittorrent.PropTrackers ??= (() => {
|
|||
this.hideItem("CopyTrackerUrl");
|
||||
}
|
||||
else {
|
||||
this.showItem("EditTracker");
|
||||
if (selectedTrackers.length === 1)
|
||||
this.showItem("EditTracker");
|
||||
else
|
||||
this.hideItem("EditTracker");
|
||||
|
||||
this.showItem("RemoveTracker");
|
||||
this.showItem("CopyTrackerUrl");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue