[pve-devel] [PATCH manager 2/3] ui: resource tree: fix showing empty tooltips
Dominik Csapak
d.csapak at proxmox.com
Fri Nov 10 11:12:59 CET 2023
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 at proxmox.com>
---
www/manager6/tree/ResourceTree.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/www/manager6/tree/ResourceTree.js b/www/manager6/tree/ResourceTree.js
index 3d2dd931..ed51ac32 100644
--- a/www/manager6/tree/ResourceTree.js
+++ b/www/manager6/tree/ResourceTree.js
@@ -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;
},
},
});
--
2.30.2
More information about the pve-devel
mailing list