fix(node_info): do not show() the UPS widget from its renderer

Calling this.show() during StatusView.updateField races Ext's table
layout (e.set is not a function) and aborts the rest of the summary
panel. The widget is already visible; only toggle the progress bar.
This commit is contained in:
Evan 2026-08-23 15:08:32 +08:00
parent de13e2329b
commit 5be35ea2d4

View File

@ -1090,21 +1090,17 @@ Ext.define('PVE.node.StatusView', {
}
if (objValue.disabled === true) {
this.hide();
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]);
});
if (!upsKeys.length) {
this.hide();
this.setPrintBar(false);
return '';
}
this.show();
this.setPrintBar(true);
function formatRuntime(seconds) {