mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 08:58:38 +00:00
make the tracker host error filter have an icon
This commit is contained in:
parent
c46c56e784
commit
575efe1495
1 changed files with 3 additions and 1 deletions
|
@ -347,8 +347,10 @@ Deluge.SideBar = {
|
||||||
|
|
||||||
var image = '';
|
var image = '';
|
||||||
if (r.store.id == 'tracker_host') {
|
if (r.store.id == 'tracker_host') {
|
||||||
|
if (value != 'Error') {
|
||||||
image = String.format('url(/tracker/{0})', value);
|
image = String.format('url(/tracker/{0})', value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return String.format('<div class="x-deluge-filter x-deluge-{2}" style="background-image: {3};">{0} ({1})</div>', value, r.data['count'], lname, image);
|
return String.format('<div class="x-deluge-filter x-deluge-{2}" style="background-image: {3};">{0} ({1})</div>', value, r.data['count'], lname, image);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue