From 021838f8d3f8d09a7907e79a766f15a3d31f23e0 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 8 Sep 2021 16:13:03 +0200 Subject: [PATCH] ui: backup job detail view: show retention settings in three columns to safe vertical space for the actual guest+disk list Signed-off-by: Thomas Lamprecht --- www/manager6/dc/Backup.js | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js index 74f896c4..b8350cfa 100644 --- a/www/manager6/dc/Backup.js +++ b/www/manager6/dc/Backup.js @@ -716,8 +716,7 @@ Ext.define('PVE.dc.BackupInfo', { }].concat( [ ['keep-last', gettext('Keep Last')], - ['keep-daily', gettext('Keep Daily')], - ['keep-monthly', gettext('Keep Monthly')], + ['keep-hourly', gettext('Keep Hourly')], ].map( name => ({ xtype: 'displayfield', @@ -736,8 +735,26 @@ Ext.define('PVE.dc.BackupInfo', { labelWidth: 110, }, items: [ - ['keep-hourly', gettext('Keep Hourly')], + ['keep-daily', gettext('Keep Daily')], ['keep-weekly', gettext('Keep Weekly')], + ].map( + name => ({ + xtype: 'displayfield', + name: name[0], + fieldLabel: name[1], + bind: { + hidden: '{!hasRetention || retentionKeepAll}', + }, + }), + ), + }, + { + padding: '0 0 0 10', + defaults: { + labelWidth: 110, + }, + items: [ + ['keep-monthly', gettext('Keep Monthly')], ['keep-yearly', gettext('Keep Yearly')], ].map( name => ({