mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 12:33:00 +02:00
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -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'
|
||||||
|
Reference in New Issue
Block a user