mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 03:55:33 +00:00
ui: backuo jobs: move next-run column beside schedule one
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
7ce62ab3ad
commit
8aeb7146f9
@ -752,6 +752,12 @@ Ext.define('PVE.dc.BackupView', {
|
||||
width: 150,
|
||||
dataIndex: 'schedule',
|
||||
},
|
||||
{
|
||||
text: gettext('Next Run'),
|
||||
dataIndex: 'next-run',
|
||||
width: 150,
|
||||
renderer: PVE.Utils.render_next_event,
|
||||
},
|
||||
{
|
||||
header: gettext('Storage'),
|
||||
width: 100,
|
||||
@ -765,22 +771,6 @@ Ext.define('PVE.dc.BackupView', {
|
||||
sorter: (a, b) => (a.data.comment || '').localeCompare(b.data.comment || ''),
|
||||
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'),
|
||||
dataIndex: 'prune-backups',
|
||||
|
Loading…
Reference in New Issue
Block a user