From 2f3d2f972337d6d3bf28531f2fc8fab0378b0fcc Mon Sep 17 00:00:00 2001 From: Meliox Date: Sat, 22 Aug 2026 17:55:26 +0200 Subject: [PATCH] fix(node_info): re-show sensor widgets when data becomes valid again after being hidden --- 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 75cfdcd..090c1fa 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) { @@ -926,6 +931,7 @@ Ext.define('PVE.node.StatusView', { } else if (!objValue || Object.keys(objValue).length === 0) { return 'N/A'; } + this.show(); // Helper function to get status color function getStatusColor(status) { @@ -1158,6 +1164,7 @@ Ext.define('PVE.node.StatusView', { this.hide(); return ''; } + this.show(); const titleMap = { manufacturer: 'Manufacturer',