diff --git a/pve-mod-gui-sensors.sh b/pve-mod-gui-sensors.sh index e1b65ec..9f0ae64 100644 --- a/pve-mod-gui-sensors.sh +++ b/pve-mod-gui-sensors.sh @@ -252,6 +252,19 @@ function install_mod { if [[ -z $(cat "$pvemanagerlibjs" | grep -e "itemId: 'thermal[[:alnum:]]*'") ]]; then + #todo code segment to add somewhere... + { + itemId: 'sysinfo', + colspan: 2, + printBar: false, + title: gettext('System Information'), + textField: 'systemInfo', + renderer: function(value){ + return value; + } + }, + + local tempHelperCtorParams=$([[ "$TEMP_UNIT" = "F" ]] && echo '{srcUnit: PVE.mod.TempHelper.CELSIUS, dstUnit: PVE.mod.TempHelper.FAHRENHEIT}' || echo '{srcUnit: PVE.mod.TempHelper.CELSIUS, dstUnit: PVE.mod.TempHelper.CELSIUS}') # Expand space in StatusView sed -i "/Ext.define('PVE\.node\.StatusView'/,/\},/ {