Display fix for HDD/SSD when no NVMe.

This commit is contained in:
rmm 2023-07-04 10:36:38 +02:00
parent 04cfbe6962
commit 56149deaf4

View File

@ -243,14 +243,9 @@ function install_mod {
:a; :a;
/items:/!{N;ba;} /items:/!{N;ba;}
:b; :b;
/thermal.*},/!{N;bb;} /'thermal.*},/!{N;bb;}
a\ a\
\\ \\
{\n\
xtype: 'box',\n\
colspan: 1,\n\
padding: '0 0 20 0',\n\
},\n\
{\n\ {\n\
itemId: 'thermalHdd',\n\ itemId: 'thermalHdd',\n\
colspan: 1,\n\ colspan: 1,\n\
@ -290,7 +285,7 @@ function install_mod {
:a; :a;
/items:/!{N;ba;} /items:/!{N;ba;}
:b; :b;
/thermal.*},/!{N;bb;} /'thermal.*},/!{N;bb;}
a\ a\
\\ \\
{\n\ {\n\
@ -327,6 +322,20 @@ function install_mod {
}" "$pvemanagerlibjs" }" "$pvemanagerlibjs"
fi fi
if [ $enableNvmeTemp = true -a $enableHddTemp = true ]; then
sed -i "/^Ext.define('PVE.node.StatusView',/ {
:a;
/^.*{.*'thermalNvme'.*},/!{N;ba;}
a\
\\
{\n\
xtype: 'box',\n\
colspan: 1,\n\
padding: '0 0 20 0',\n\
},
}" "$pvemanagerlibjs"
fi
msg "New temperature display items added to the summary panel in \"$pvemanagerlibjs\"." msg "New temperature display items added to the summary panel in \"$pvemanagerlibjs\"."
restart_proxy restart_proxy