Commit 15ac8913 authored by Thomas Lamprecht's avatar Thomas Lamprecht Committed by Dietmar Maurer

fix 'state' default value in resource edit dialog

as we assume the default to 'enabled' when state isn't explicitly
set, use this default when editing a resource.
Signed-off-by: 's avatarThomas Lamprecht <t.lamprecht@proxmox.com>
parent 588a088b
...@@ -108,9 +108,9 @@ Ext.define('PVE.ha.VMResourceEdit', { ...@@ -108,9 +108,9 @@ Ext.define('PVE.ha.VMResourceEdit', {
success: function(response, options) { success: function(response, options) {
var values = response.result.data; var values = response.result.data;
values.enable = false; values.enable = true;
if (values.state === 'enabled') { if (values.state === 'disabled') {
values.enable = true; values.enable = false;
} }
var regex = /^(\S+):(\S+)$/; var regex = /^(\S+):(\S+)$/;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment