not only when we're in the folder view

Signed-off-by: Dominik Csapak <d.csa...@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



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to