[pbs-devel] [PATCH proxmox-backup] ui: prune job edit: fix disabling jobs
Fiona Ebner
f.ebner at proxmox.com
Mon Nov 14 10:42:58 CET 2022
The backend doesn't have an 'enable' option, but 'disable'. Could be
converted before sending and after loading, but it's cleaner to just
align it with the backend.
Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
www/window/PruneJobEdit.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/www/window/PruneJobEdit.js b/www/window/PruneJobEdit.js
index 87be71ad..1b43b31f 100644
--- a/www/window/PruneJobEdit.js
+++ b/www/window/PruneJobEdit.js
@@ -112,11 +112,11 @@ Ext.define('PBS.window.PruneJobEdit', {
},
{
xtype: 'proxmoxcheckbox',
- fieldLabel: gettext('Enabled'),
- name: 'enable',
- uncheckedValue: 0,
- defaultValue: 1,
- checked: true,
+ fieldLabel: gettext('Disabled'),
+ name: 'disable',
+ uncheckedValue: false,
+ defaultValue: true,
+ checked: false,
},
],
--
2.30.2
More information about the pbs-devel
mailing list