1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 12:32:31 +01:00

Fixed sorting on Progress in Queue.

Fixes #882
This commit is contained in:
Taloth Saldono 2015-10-22 19:49:10 +02:00
parent f01a21ce43
commit c9a36fe4b2
2 changed files with 14 additions and 1 deletions

View File

@ -61,6 +61,19 @@ var QueueCollection = PageableCollection.extend({
return Number.MAX_VALUE; return Number.MAX_VALUE;
} }
},
sizeleft : {
sortValue : function(model, attr) {
var size = model.get('size');
var sizeleft = model.get('sizeleft');
if (size && sizeleft) {
return sizeleft / size;
}
return 0;
}
} }
} }
}); });

View File

@ -61,7 +61,7 @@ module.exports = Marionette.Layout.extend({
cellValue : 'this' cellValue : 'this'
}, },
{ {
name : 'episode', name : 'sizeleft',
label : 'Progress', label : 'Progress',
cell : ProgressCell, cell : ProgressCell,
cellValue : 'this' cellValue : 'this'