Add Missing Filter (#237)

This commit is contained in:
William Comartin 2017-01-13 14:57:25 -05:00 committed by Leonardo Galli
parent 3a6873cc4d
commit f7471940c4
2 changed files with 9 additions and 3 deletions

View File

@ -175,6 +175,13 @@ module.exports = Marionette.Layout.extend({
tooltip : 'Monitored Only',
icon : 'icon-sonarr-monitored',
callback : this._setFilter
},
{
key : 'missing',
title : '',
tooltip : 'Missing Only',
icon : 'icon-sonarr-missing',
callback : this._setFilter
}
]
};

View File

@ -65,9 +65,8 @@ var Collection = PageableCollection.extend({
true
],
'missing' : [
null,
null,
function(model) { return model.get('episodeCount') !== model.get('episodeFileCount'); }
'downloaded',
false
]
},