mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 01:23:53 -07:00
Episode grid will show downloading on grab
New: Update episode status in UI on grab and download
This commit is contained in:
parent
b6693a20a9
commit
daeb2fc652
37 changed files with 613 additions and 128 deletions
27
UI/History/Queue/TimeleftCell.js
Normal file
27
UI/History/Queue/TimeleftCell.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
'use strict';
|
||||
|
||||
define(
|
||||
[
|
||||
'Cells/NzbDroneCell'
|
||||
], function (NzbDroneCell) {
|
||||
return NzbDroneCell.extend({
|
||||
|
||||
className: 'history-event-type-cell',
|
||||
|
||||
render: function () {
|
||||
this.$el.empty();
|
||||
|
||||
if (this.cellValue) {
|
||||
|
||||
var timeleft = this.cellValue.get('timeleft');
|
||||
var size = this.cellValue.get('size');
|
||||
var sizeLeft = this.cellValue.get('sizeLeft');
|
||||
|
||||
this.$el.html(timeleft);
|
||||
this.$el.attr('title', '{0} MB / {1} MB'.format(sizeLeft, size));
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue