diff --git a/src/modules/node_info/files/PveMod_pvemanagerlib.js b/src/modules/node_info/files/PveMod_pvemanagerlib.js index ea9755c..75cfdcd 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('') + '
'; },