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:
parent
e5e252e990
commit
c93a8de89d
@ -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: [
|
||||
|
Loading…
Reference in New Issue
Block a user