mirror of
https://github.com/Radarr/Radarr
synced 2025-12-16 13:26:14 +01:00
25 lines
579 B
JavaScript
25 lines
579 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'Cells/NzbDroneCell',
|
|
'moment'
|
|
], function (NzbDroneCell, moment) {
|
|
return NzbDroneCell.extend({
|
|
|
|
className: 'task-interval-cell',
|
|
|
|
render: function () {
|
|
|
|
this.$el.empty();
|
|
|
|
var interval = this.model.get('interval');
|
|
var duration = moment.duration(interval, 'minutes').humanize();
|
|
|
|
this.$el.html(
|
|
duration.replace(/an?(?=\s)/, '1')
|
|
);
|
|
|
|
return this;
|
|
}
|
|
});
|
|
});
|