Fix #1961 : Missing 'All' filter option for Label plugin
This commit is contained in:
parent
56f8e213e3
commit
39f648684e
|
@ -127,7 +127,9 @@ class Core(CorePluginBase):
|
|||
pass
|
||||
|
||||
def init_filter_dict(self):
|
||||
return dict( [(label, 0) for label in self.labels.keys()])
|
||||
filter_dict = dict([(label, 0) for label in self.labels.keys()])
|
||||
filter_dict['All'] = len(self.torrents.keys())
|
||||
return filter_dict
|
||||
|
||||
## Plugin hooks ##
|
||||
def post_torrent_add(self, torrent_id):
|
||||
|
|
|
@ -426,7 +426,7 @@ Deluge.plugins.LabelPlugin = Ext.extend(Deluge.Plugin, {
|
|||
|
||||
var lbltpl = '<div class="x-deluge-filter">' +
|
||||
'<tpl if="filter">{filter}</tpl>' +
|
||||
'<tpl if="!filter">no label</tpl>' +
|
||||
'<tpl if="!filter">No Label</tpl>' +
|
||||
' ({count})' +
|
||||
'</div>';
|
||||
|
||||
|
|
Loading…
Reference in New Issue