Fixed sorting on Progress in Queue.

Fixes #882
pull/6/head
Taloth Saldono 9 years ago
parent f01a21ce43
commit c9a36fe4b2

@ -61,6 +61,19 @@ var QueueCollection = PageableCollection.extend({
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;
}
}
}
});

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

Loading…
Cancel
Save