mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 11:46:44 +00:00
ui: resource tree: fix showing empty tooltips
stop the tooltip show when the there is no text this could happen for e.g. nodes that should not have a tooltip Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
128e8e826a
commit
1ed8e0096b
@ -417,7 +417,12 @@ Ext.define('PVE.tree.ResourceTree', {
|
|||||||
listeners: {
|
listeners: {
|
||||||
beforeshow: function(tip) {
|
beforeshow: function(tip) {
|
||||||
let rec = me.getView().getRecord(tip.triggerElement);
|
let rec = me.getView().getRecord(tip.triggerElement);
|
||||||
tip.update(me.getToolTip(rec.data));
|
let tipText = me.getToolTip(rec.data);
|
||||||
|
if (tipText) {
|
||||||
|
tip.update(tipText);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user