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:
Dominik Csapak 2016-11-07 12:05:06 +01:00 committed by Fabian Grünbichler
parent f223afc59a
commit ac47b0d215

View File

@ -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',