Skip to content

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

Open
OiCkilL wants to merge 1 commit into
Meliox:mainfrom
OiCkilL:fix/ups-renderer-no-show-during-layout
Open

fix(node_info): do not show() the UPS widget from its renderer#319
OiCkilL wants to merge 1 commit into
Meliox:mainfrom
OiCkilL:fix/ups-renderer-no-show-during-layout

Conversation

@OiCkilL

@OiCkilL OiCkilL commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #310.

On 1.0.7 the node summary can stall after Primary Metrics: UPS Status shows only the title, later widgets never paint, and the console throws:

Uncaught TypeError: e.set is not a function
    at ctor.renderChildren
    ...
    at renderer @ PveMod_PveNodeStatusView.js
    at updateField @ proxmoxlib.js

PVE.node.StatusView is a 2-column table layout. The UPS widget replaces pmxInfoWidget internals with nested containers + a progressbar. The renderer (invoked from updateField while the store loads) called this.show() even for an empty first payload (PveMod_upsInfo is {} until the collector writes ups.json). That show() flushes layouts mid-updateValues, and Ext's table layout hits e.set is not a function. Remaining pmxInfoWidgets never update.

The comment already says the renderer should not touch the DOM. This removes this.show() / this.hide() from it and only toggles setPrintBar.

Tested by applying the same one-hunk change on a 1.0.7 host; summary widgets and the UPS row render after a hard refresh.

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.
@Meliox

Meliox commented Aug 23, 2026

Copy link
Copy Markdown
Owner

I am wondering if this also breaks something....

0476410
8a9b756

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants