ui: prune job edit: fix disabling jobs

The backend doesn't have an 'enable' option, but 'disable'. Convert
it to avoid a negative value that is checked "enabled".

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-11-15 15:26:05 +01:00
parent e5e252e990
commit c93a8de89d

View File

@ -56,6 +56,16 @@ Ext.define('PBS.window.PruneJobEdit', {
values.delete = values.delete.split(',');
}
}
values.disable = !values.enable;
delete values.enable;
return values;
},
onSetValues: function(values) {
let me = this;
values.enable = !values.disable;
delete values.disable;
return values;
},
column1: [