]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: prune job: disallow setting blank schedule
authorStefan Lendl <s.lendl@proxmox.com>
Thu, 7 Mar 2024 13:33:43 +0000 (14:33 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Mar 2024 16:17:12 +0000 (17:17 +0100)
The schedule value for prune jobs can not be empty.

Signed-off-by: Stefan Lendl <s.lendl@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/window/PruneJobEdit.js

index b804fdb412e398cd5758d2f466a0939028907330..30ec8036b9204fc9db6d4fb276f4e2ced6a39b97 100644 (file)
@@ -116,9 +116,8 @@ Ext.define('PBS.window.PruneJobEdit', {
                fieldLabel: gettext('Prune Schedule'),
                xtype: 'pbsCalendarEvent',
                name: 'schedule',
-               emptyText: gettext('none (disabled)'),
+               allowBlank: false,
                cbind: {
-                   deleteEmpty: '{!isCreate}',
                    value: '{scheduleValue}',
                },
            },