ui: backuo jobs: move next-run column beside schedule one

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-01-13 16:49:18 +01:00
parent 7ce62ab3ad
commit 8aeb7146f9

View File

@ -752,6 +752,12 @@ Ext.define('PVE.dc.BackupView', {
width: 150, width: 150,
dataIndex: 'schedule', dataIndex: 'schedule',
}, },
{
text: gettext('Next Run'),
dataIndex: 'next-run',
width: 150,
renderer: PVE.Utils.render_next_event,
},
{ {
header: gettext('Storage'), header: gettext('Storage'),
width: 100, width: 100,
@ -765,22 +771,6 @@ Ext.define('PVE.dc.BackupView', {
sorter: (a, b) => (a.data.comment || '').localeCompare(b.data.comment || ''), sorter: (a, b) => (a.data.comment || '').localeCompare(b.data.comment || ''),
flex: 1, flex: 1,
}, },
{
text: gettext('Next Run'),
dataIndex: 'next-run',
width: 150,
renderer: function(value) {
if (!value) {
return '-';
}
let now = new Date(), next = new Date(value * 1000);
if (next < now) {
return gettext('pending');
}
return Proxmox.Utils.render_timestamp(value);
},
},
{ {
header: gettext('Retention'), header: gettext('Retention'),
dataIndex: 'prune-backups', dataIndex: 'prune-backups',