[pve-devel] [PATCH manager v2 2/2] ui: resource tree: always show node tooltip
Dominik Csapak
d.csapak at proxmox.com
Thu Nov 23 10:14:35 CET 2023
not only when we're in the folder view
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
changes from v1:
* split out the node logic
* removed the unnecessary 'setText' calls (they did not do anything in
those cases anyway)
requires the previous patch, otherwise the text for nodes in the server
view will be overwritten and the tooltip will now show there
www/manager6/tree/ResourceTree.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/manager6/tree/ResourceTree.js b/www/manager6/tree/ResourceTree.js
index e07e4ba0..b265eaed 100644
--- a/www/manager6/tree/ResourceTree.js
+++ b/www/manager6/tree/ResourceTree.js
@@ -134,7 +134,7 @@ Ext.define('PVE.tree.ResourceTree', {
},
getToolTip: function(info) {
- if (info.type === 'pool' || info.groupbyid !== undefined) {
+ if (info.type === 'pool' || (info.groupbyid !== undefined && info.type !== 'node')) {
return undefined;
}
--
2.30.2
More information about the pve-devel
mailing list