mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 01:23:53 -07:00
New: Show processing time for pending items on Calendar and Queue
This commit is contained in:
parent
3b26e82644
commit
c21ffcb5e4
7 changed files with 47 additions and 14 deletions
|
@ -3,8 +3,9 @@
|
|||
define(
|
||||
[
|
||||
'Cells/NzbDroneCell',
|
||||
'filesize'
|
||||
], function (NzbDroneCell, fileSize) {
|
||||
'filesize',
|
||||
'moment'
|
||||
], function (NzbDroneCell, fileSize, Moment) {
|
||||
return NzbDroneCell.extend({
|
||||
|
||||
className: 'timeleft-cell',
|
||||
|
@ -17,7 +18,7 @@ define(
|
|||
//If the release is pending we want to use the timeleft as the time it will be processed at
|
||||
if (this.cellValue.get('status').toLowerCase() === 'pending') {
|
||||
this.$el.html('-');
|
||||
this.$el.attr('title', 'Will be processed again in: {0}'.format(this.cellValue.get('timeleft')));
|
||||
this.$el.attr('title', 'Will be processed {0}'.format(new Moment(this.cellValue.get('estimatedCompletionTime')).calendar()));
|
||||
this.$el.attr('data-container', 'body');
|
||||
|
||||
return this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue