mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 06:45:19 -07:00
Merge pull request #378 from Radarr/patch/add-more-filters
Add more filter options to movie list
This commit is contained in:
commit
585fd87ad6
2 changed files with 36 additions and 0 deletions
|
@ -182,6 +182,27 @@ module.exports = Marionette.Layout.extend({
|
|||
tooltip : 'Missing Only',
|
||||
icon : 'icon-sonarr-missing',
|
||||
callback : this._setFilter
|
||||
},
|
||||
{
|
||||
key : 'released',
|
||||
title : '',
|
||||
tooltip : 'Released',
|
||||
icon : 'icon-sonarr-movie-released',
|
||||
callback : this._setFilter
|
||||
},
|
||||
{
|
||||
key : 'announced',
|
||||
title : '',
|
||||
tooltip : 'Announced',
|
||||
icon : 'icon-sonarr-movie-announced',
|
||||
callback : this._setFilter
|
||||
},
|
||||
{
|
||||
key : 'cinemas',
|
||||
title : '',
|
||||
tooltip : 'In Cinemas',
|
||||
icon : 'icon-sonarr-movie-cinemas',
|
||||
callback : this._setFilter
|
||||
}
|
||||
]
|
||||
};
|
||||
|
|
|
@ -67,6 +67,21 @@ var Collection = PageableCollection.extend({
|
|||
'missing' : [
|
||||
'downloaded',
|
||||
false
|
||||
],
|
||||
'released' : [
|
||||
null,
|
||||
null,
|
||||
function(model) { return model.getStatus() == "released"; }
|
||||
],
|
||||
'announced' : [
|
||||
null,
|
||||
null,
|
||||
function(model) { return model.getStatus() == "announced"; }
|
||||
],
|
||||
'cinemas' : [
|
||||
null,
|
||||
null,
|
||||
function(model) { return model.getStatus() == "inCinemas"; }
|
||||
]
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue