]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: ha: make vote warning shorter
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 11 Oct 2017 10:09:43 +0000 (12:09 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 16 Oct 2017 12:54:25 +0000 (14:54 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/ha/ResourceEdit.js

index afcbca0550b16acffab0f7ca057a77c6f17119da..dd3d645ae4c92e90e29478cc829fc9c4c013f1ce 100644 (file)
@@ -25,7 +25,7 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
        var MIN_QUORUM_VOTES = 3;
 
        var disabledHint = Ext.createWidget({
-           xtype: 'displayfield', //submitValue is false, so we don't get submitted
+           xtype: 'displayfield', // won't get submitted by default
            userCls: 'pve-hint',
            value: 'Disabling the resource will stop the guest system. ' +
            'See the online help for details.',
@@ -36,11 +36,7 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
            itemId: 'fewVotesHint',
            xtype: 'displayfield',
            userCls: 'pve-hint',
-           updateValue: function(votes) {
-               var me = this;
-               me.setValue('You need at least three quorum votes for a reliable HA cluster. ' +
-               'See the online help for details. Current votes: ' + votes);
-           },
+           value: 'At least three quorum votes are recommended for reliable HA.',
            hidden: true
        });
 
@@ -59,7 +55,6 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
                });
 
                if (votes < MIN_QUORUM_VOTES) {
-                   fewVotesHint.updateValue(votes);
                    fewVotesHint.setVisible(true);
                }
            }