mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 09:59:33 +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: {
|
||||
beforeshow: function(tip) {
|
||||
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