mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-29 21:39:34 +02:00
Wanted & Missing (#687)
* Remove Season Pass, Update Header name, remove useless function * Cutoff Tab now works
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
var _ = require('underscore');
|
||||
var EpisodeModel = require('../../Series/EpisodeModel');
|
||||
var MovieModel = require('../../Movies/MovieModel');
|
||||
var PagableCollection = require('backbone.pageable');
|
||||
var AsFilteredCollection = require('../../Mixins/AsFilteredCollection');
|
||||
var AsSortedCollection = require('../../Mixins/AsSortedCollection');
|
||||
@@ -7,13 +7,13 @@ var AsPersistedStateCollection = require('../../Mixins/AsPersistedStateCollectio
|
||||
|
||||
var Collection = PagableCollection.extend({
|
||||
url : window.NzbDrone.ApiRoot + '/wanted/cutoff',
|
||||
model : EpisodeModel,
|
||||
model : MovieModel,
|
||||
tableName : 'wanted.cutoff',
|
||||
|
||||
state : {
|
||||
pageSize : 15,
|
||||
sortKey : 'airDateUtc',
|
||||
order : 1
|
||||
sortKey : 'title',
|
||||
order : -1
|
||||
},
|
||||
|
||||
queryParams : {
|
||||
@@ -40,9 +40,9 @@ var Collection = PagableCollection.extend({
|
||||
],
|
||||
},
|
||||
|
||||
sortMappings : {
|
||||
'series' : { sortKey : 'series.sortTitle' }
|
||||
},
|
||||
// sortMappings : {
|
||||
// 'this' : { sortKey : 'this.sortTitle' }
|
||||
// },
|
||||
|
||||
parseState : function(resp) {
|
||||
return { totalRecords : resp.totalRecords };
|
||||
|
Reference in New Issue
Block a user