diff --git a/src/modules/node_info/files/PveMod_pvemanagerlib.js b/src/modules/node_info/files/PveMod_pvemanagerlib.js index a9b9005..9e18886 100644 --- a/src/modules/node_info/files/PveMod_pvemanagerlib.js +++ b/src/modules/node_info/files/PveMod_pvemanagerlib.js @@ -1093,7 +1093,7 @@ Ext.define('PVE.node.StatusView', { return '' + label + ''; } - const lines = []; + const rows = []; upsKeys.forEach(function(upsKey) { const upsData = objValue[upsKey] || {}; const charge = parseFloat(upsData['battery.charge']); @@ -1104,9 +1104,6 @@ Ext.define('PVE.node.StatusView', { const model = upsData['ups.model'] || upsData['device.model'] || upsKey; const st = statusText(upsData['ups.status']); const bits = []; - if (model) { - bits.push(model); - } if (st.text) { bits.push(colorize(st.text, st.color)); } @@ -1126,10 +1123,16 @@ Ext.define('PVE.node.StatusView', { const places = inputVoltage >= 50 ? 0 : 1; bits.push(inputVoltage.toFixed(places) + ' V in'); } - lines.push(bits.join(' | ')); + + rows.push( + '' + + '' + model + '' + + '' + bits.join(' | ') + '' + + '' + ); }); - return lines.join('
'); + return '
' + rows.join('') + '
'; } }, {