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