mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-17 20:07:27 +00:00
ui: ha: make vote warning shorter
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com> Acked-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
9f50d5041b
commit
1c289bc89e
@ -25,7 +25,7 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
|
|||||||
var MIN_QUORUM_VOTES = 3;
|
var MIN_QUORUM_VOTES = 3;
|
||||||
|
|
||||||
var disabledHint = Ext.createWidget({
|
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',
|
userCls: 'pve-hint',
|
||||||
value: 'Disabling the resource will stop the guest system. ' +
|
value: 'Disabling the resource will stop the guest system. ' +
|
||||||
'See the online help for details.',
|
'See the online help for details.',
|
||||||
@ -36,11 +36,7 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
|
|||||||
itemId: 'fewVotesHint',
|
itemId: 'fewVotesHint',
|
||||||
xtype: 'displayfield',
|
xtype: 'displayfield',
|
||||||
userCls: 'pve-hint',
|
userCls: 'pve-hint',
|
||||||
updateValue: function(votes) {
|
value: 'At least three quorum votes are recommended for reliable HA.',
|
||||||
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);
|
|
||||||
},
|
|
||||||
hidden: true
|
hidden: true
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -59,7 +55,6 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (votes < MIN_QUORUM_VOTES) {
|
if (votes < MIN_QUORUM_VOTES) {
|
||||||
fewVotesHint.updateValue(votes);
|
|
||||||
fewVotesHint.setVisible(true);
|
fewVotesHint.setVisible(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user