mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 09:59: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,
|
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',
|
||||||
|
Loading…
Reference in New Issue
Block a user