From c36906c0d80b3663fd353d9be0bd5d0311508df9 Mon Sep 17 00:00:00 2001 From: Meliox Date: Sat, 22 Aug 2026 23:31:45 +0200 Subject: [PATCH] cleanup --- src/modules/node_info/files/PveMod_pvemanagerlib.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/modules/node_info/files/PveMod_pvemanagerlib.js b/src/modules/node_info/files/PveMod_pvemanagerlib.js index fb266cc..e170d2e 100644 --- a/src/modules/node_info/files/PveMod_pvemanagerlib.js +++ b/src/modules/node_info/files/PveMod_pvemanagerlib.js @@ -391,6 +391,7 @@ Ext.define('PVE.node.StatusView', { this.hide(); return ''; } else if (!gpuStats || !gpuStats.Graphics) { + this.hide(); return ''; } @@ -508,9 +509,12 @@ Ext.define('PVE.node.StatusView', { } html += ''; - return html.indexOf('') > 0 - ? '
' + html + '
' - : ''; + if (html.indexOf('') <= 0) { + this.hide(); + return ''; + } + this.show(); + return '
' + html + '
'; }, }, { @@ -865,6 +869,7 @@ Ext.define('PVE.node.StatusView', { this.hide(); return ''; } else if (!gpuStats || !gpuStats.Graphics || !gpuStats.Graphics.NVIDIA) { + this.hide(); return ''; } @@ -892,8 +897,10 @@ Ext.define('PVE.node.StatusView', { }); if (rows.length === 0) { + this.hide(); return ''; } + this.show(); return '
' + rows.join('') + '
'; },