From 290a3751af7a1f6e8f28852f4b80b18d93f8cd28 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Wed, 2 Nov 2016 12:50:42 +0100 Subject: [PATCH] fix jslint errors in ha resources also the correct value for haGroupSelector is [] not '', with this, the reset button works correctly Signed-off-by: Dominik Csapak --- www/manager6/ha/GroupSelector.js | 1 + www/manager6/ha/ResourceEdit.js | 1 - www/manager6/ha/Resources.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/manager6/ha/GroupSelector.js b/www/manager6/ha/GroupSelector.js index b55fc568..eb37b0e9 100644 --- a/www/manager6/ha/GroupSelector.js +++ b/www/manager6/ha/GroupSelector.js @@ -2,6 +2,7 @@ Ext.define('PVE.ha.GroupSelector', { extend: 'PVE.form.ComboGrid', alias: ['widget.pveHAGroupSelector'], + value: [], autoSelect: false, valueField: 'group', displayField: 'group', diff --git a/www/manager6/ha/ResourceEdit.js b/www/manager6/ha/ResourceEdit.js index 4803fc72..326d2688 100644 --- a/www/manager6/ha/ResourceEdit.js +++ b/www/manager6/ha/ResourceEdit.js @@ -75,7 +75,6 @@ Ext.define('PVE.ha.VMResourceInputPanel', { { xtype: 'pveHAGroupSelector', name: 'group', - value: '', fieldLabel: gettext('Group') }, { diff --git a/www/manager6/ha/Resources.js b/www/manager6/ha/Resources.js index af9775dd..63734736 100644 --- a/www/manager6/ha/Resources.js +++ b/www/manager6/ha/Resources.js @@ -176,7 +176,7 @@ Ext.define('PVE.ha.ResourcesView', { extend: 'Ext.data.Model', fields: [ 'sid', 'state', 'digest', 'errors', 'group', 'comment', - 'max_restart', 'max_relocate', + 'max_restart', 'max_relocate' ], idProperty: 'sid' });