From 0476410de578dbed7117aa59a3503c4ad64a9a4b Mon Sep 17 00:00:00 2001 From: Meliox <5264368+Meliox@users.noreply.github.com> Date: Sun, 23 Aug 2026 00:25:27 +0200 Subject: [PATCH] fix(node_info): re-show sensor widgets when data becomes valid again after being hidden (#312) Co-authored-by: Meliox --- src/modules/node_info/files/PveMod_pvemanagerlib.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modules/node_info/files/PveMod_pvemanagerlib.js b/src/modules/node_info/files/PveMod_pvemanagerlib.js index e170d2e..a04213f 100644 --- a/src/modules/node_info/files/PveMod_pvemanagerlib.js +++ b/src/modules/node_info/files/PveMod_pvemanagerlib.js @@ -223,6 +223,7 @@ Ext.define('PVE.node.StatusView', { } catch(e) { objValue = {}; } + this.show(); // sensors configuration const cpuTempHelper = Ext.create('PVE.mod.TempHelper', {srcUnit: PVE.mod.TempHelper.CELSIUS, dstUnit: value.temp_unit === 'F' ? PVE.mod.TempHelper.FAHRENHEIT : PVE.mod.TempHelper.CELSIUS}); const cpuKeysI = Object.keys(objValue).filter(item => String(item).startsWith('coretemp-isa-')).sort(); @@ -543,6 +544,7 @@ Ext.define('PVE.node.StatusView', { } catch(e) { objValue = {}; } + this.show(); const tempHelper = Ext.create('PVE.mod.TempHelper', {srcUnit: PVE.mod.TempHelper.CELSIUS, dstUnit: value.temp_unit === 'F' ? PVE.mod.TempHelper.FAHRENHEIT : PVE.mod.TempHelper.CELSIUS}); const drvKeys = Object.keys(objValue).filter(item => String(item).startsWith(addressPrefix)).sort((a, b) => a.localeCompare(b, undefined, { numeric: true, sensitivity: 'base' })); let drvData = []; @@ -623,6 +625,7 @@ Ext.define('PVE.node.StatusView', { } catch(e) { objValue = {}; } + this.show(); const tempHelper = Ext.create('PVE.mod.TempHelper', {srcUnit: PVE.mod.TempHelper.CELSIUS, dstUnit: value.temp_unit === 'F' ? PVE.mod.TempHelper.FAHRENHEIT : PVE.mod.TempHelper.CELSIUS}); const nvmeKeys = Object.keys(objValue).filter(item => String(item).startsWith(addressPrefix)).sort(); let nvmeData = []; @@ -711,6 +714,7 @@ Ext.define('PVE.node.StatusView', { } catch(e) { objValue = {}; } + this.show(); const tempHelper = Ext.create('PVE.mod.TempHelper', {srcUnit: PVE.mod.TempHelper.CELSIUS, dstUnit: value.temp_unit === 'F' ? PVE.mod.TempHelper.FAHRENHEIT : PVE.mod.TempHelper.CELSIUS}); // Keep only keys that do not belong to known categories @@ -811,6 +815,7 @@ Ext.define('PVE.node.StatusView', { } catch(e) { objValue = {}; } + this.show(); // Recursive function to find fan keys and values function findFanKeys(obj, fanKeys, parentKey = null) { @@ -1082,6 +1087,7 @@ Ext.define('PVE.node.StatusView', { this.setPrintBar(false); return ''; } + this.show(); const upsKeys = Object.keys(objValue).filter(function(k) { return objValue[k] && typeof objValue[k] === 'object' && !Array.isArray(objValue[k]); @@ -1264,6 +1270,7 @@ Ext.define('PVE.node.StatusView', { this.hide(); return ''; } + this.show(); const titleMap = { manufacturer: 'Manufacturer',