fix #1196: make restriced/nofailback boolean in gui
since we get the string "0" from the backend if the line is in the groups.cfg, we have to set the field to type boolean, or the string will always be interpreted as true Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
f223afc59a
commit
ac47b0d215
@ -47,8 +47,15 @@ Ext.define('PVE.ha.GroupSelector', {
|
||||
Ext.define('pve-ha-groups', {
|
||||
extend: 'Ext.data.Model',
|
||||
fields: [
|
||||
'group', 'type', 'restricted', 'digest', 'nofailback',
|
||||
'nodes', 'comment'
|
||||
'group', 'type', 'digest', 'nodes', 'comment',
|
||||
{
|
||||
name : 'restricted',
|
||||
type: 'boolean'
|
||||
},
|
||||
{
|
||||
name : 'nofailback',
|
||||
type: 'boolean'
|
||||
}
|
||||
],
|
||||
proxy: {
|
||||
type: 'pve',
|
||||
|
Loading…
x
Reference in New Issue
Block a user