so that the users can configure how to handle missed job runs
move the vmgrid inside the ipanel in 'columnB', so that the
advanced items show below the vmgrid (not above)

Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
Reviewed-by: Fabian Ebner <f.eb...@proxmox.com>
---
 www/manager6/dc/Backup.js | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js
index 3494aa54..e9d74fb6 100644
--- a/www/manager6/dc/Backup.js
+++ b/www/manager6/dc/Backup.js
@@ -236,6 +236,17 @@ Ext.define('PVE.dc.BackupEdit', {
                        'data-qtip': gettext('Description of the job'),
                    },
                },
+               vmgrid,
+           ],
+           advancedColumn1: [
+               {
+                   xtype: 'proxmoxcheckbox',
+                   fieldLabel: gettext('Repeat missed'),
+                   name: 'repeat-missed',
+                   uncheckedValue: 0,
+                   defaultValue: 0,
+                   deleteDefaultValue: !me.isCreate,
+               },
            ],
            onGetValues: function(values) {
                if (!values.node) {
@@ -365,7 +376,6 @@ Ext.define('PVE.dc.BackupEdit', {
                            },
                            items: [
                                ipanel,
-                               vmgrid,
                            ],
                        },
                        {
@@ -581,6 +591,7 @@ Ext.define('PVE.dc.BackupView', {
            delete job.node;
            delete job.comment;
            delete job['next-run'];
+           delete job['repeat-missed'];
            job.all = job.all === true ? 1 : 0;
 
            if (job['prune-backups']) {
-- 
2.30.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to