gui: tree: add lock information to tooltips
This was already proposed by Dominik[0], but it was was wished for a faster backend backing of this[1], and as with most wishes one needs to either be content with what's there or (try) to improve it one self.. So with the IPCC approach proposed as backing for this I'd like to add this again. It differs from [0] a bit, first it's rebased as parts of the tooltip stuff got already applied[2]. I use "Config locked (<LOCK>)" as text for this, as it 1. Clarifies what the lock symbol means, which is always a good thing for tooltips 2. repeating the lock symbol here again would show the users three lock symbols at the same time if the VM was selected in the tree (the tree one, the VM config panel one, and this tool tip one) this is a bit much, so don't do it. [0]: https://pve.proxmox.com/pipermail/pve-devel/2019-February/035829.html [1]: https://pve.proxmox.com/pipermail/pve-devel/2019-March/035930.html [2]: https://pve.proxmox.com/pipermail/pve-devel/2019-March/036165.html Co-developed-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
c690da1ce4
commit
5f1f944911
@ -137,6 +137,9 @@ Ext.define('PVE.tree.ResourceTree', {
|
||||
}
|
||||
|
||||
var qtips = [gettext('Status') + ': ' + (info.qmpstatus || info.status)];
|
||||
if (info.lock) {
|
||||
qtips.push('Config locked (' + info.lock + ')');
|
||||
}
|
||||
if (info.hastate != 'unmanaged') {
|
||||
qtips.push(gettext('HA State') + ": " + info.hastate);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user