[pve-devel] [PATCH manager 5/5] fix jslint errors in ha resources
Dominik Csapak
d.csapak at proxmox.com
Wed Nov 2 12:50:42 CET 2016
also the correct value for haGroupSelector is [] not '',
with this, the reset button works correctly
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
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 b55fc56..eb37b0e 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 4803fc7..326d268 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 339e96d..df26788 100644
--- a/www/manager6/ha/Resources.js
+++ b/www/manager6/ha/Resources.js
@@ -178,7 +178,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'
});
--
2.1.4
More information about the pve-devel
mailing list