|
|
|
@ -57,6 +57,7 @@ module.exports = Marionette.Layout.extend({
|
|
|
|
|
name : 'status',
|
|
|
|
|
label : 'Status',
|
|
|
|
|
cell : MovieStatusWithTextCell,
|
|
|
|
|
sortable : false
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
@ -130,26 +131,27 @@ module.exports = Marionette.Layout.extend({
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var filterOptions = {
|
|
|
|
|
type : 'radio',
|
|
|
|
|
storeState : false,
|
|
|
|
|
menuKey : 'wanted.filterMode',
|
|
|
|
|
defaultAction : 'available',
|
|
|
|
|
defaultAction : 'monitored',
|
|
|
|
|
items : [
|
|
|
|
|
{
|
|
|
|
|
key : 'all',
|
|
|
|
|
title : '',
|
|
|
|
|
tooltip : 'All',
|
|
|
|
|
icon : 'icon-sonarr-all',
|
|
|
|
|
callback : this._setFilter
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key : 'available',
|
|
|
|
|
title : '',
|
|
|
|
|
tooltip : 'Available & Monitored',
|
|
|
|
|
icon : 'icon-sonarr-available',
|
|
|
|
|
callback : this._setFilter
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key : 'all',
|
|
|
|
|
title : '',
|
|
|
|
|
tooltip : 'All',
|
|
|
|
|
icon : 'icon-sonarr-all',
|
|
|
|
|
callback : this._setFilter
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key : 'available',
|
|
|
|
|
title : '',
|
|
|
|
|
tooltip : 'Available & Monitored',
|
|
|
|
|
icon : 'icon-sonarr-available',
|
|
|
|
|
callback : this._setFilter
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key : 'monitored',
|
|
|
|
|
title : '',
|
|
|
|
@ -164,29 +166,29 @@ module.exports = Marionette.Layout.extend({
|
|
|
|
|
icon : 'icon-sonarr-unmonitored',
|
|
|
|
|
callback : this._setFilter
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key : 'announced',
|
|
|
|
|
title : '',
|
|
|
|
|
tooltip : 'Announced Only',
|
|
|
|
|
icon : 'icon-sonarr-movie-announced',
|
|
|
|
|
callback : this._setFilter
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key : 'incinemas',
|
|
|
|
|
title : '',
|
|
|
|
|
tooltip : 'In Cinemas Only',
|
|
|
|
|
icon : 'icon-sonarr-movie-cinemas',
|
|
|
|
|
callback : this._setFilter
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key : 'released',
|
|
|
|
|
title : '',
|
|
|
|
|
tooltip : 'Released Only',
|
|
|
|
|
icon : 'icon-sonarr-movie-released',
|
|
|
|
|
callback : this._setFilter
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
{
|
|
|
|
|
key : 'announced',
|
|
|
|
|
title : '',
|
|
|
|
|
tooltip : 'Announced Only',
|
|
|
|
|
icon : 'icon-sonarr-movie-announced',
|
|
|
|
|
callback : this._setFilter
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key : 'incinemas',
|
|
|
|
|
title : '',
|
|
|
|
|
tooltip : 'In Cinemas Only',
|
|
|
|
|
icon : 'icon-sonarr-movie-cinemas',
|
|
|
|
|
callback : this._setFilter
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key : 'released',
|
|
|
|
|
title : '',
|
|
|
|
|
tooltip : 'Released Only',
|
|
|
|
|
icon : 'icon-sonarr-movie-released',
|
|
|
|
|
callback : this._setFilter
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
this.toolbar.show(new ToolbarLayout({
|
|
|
|
|
left : [leftSideButtons],
|
|
|
|
|
right : [filterOptions],
|
|
|
|
|