[PR #231] fix: expand resource rows after data load instead of OnAfterRenderAsync #312

Closed
opened 2026-03-07 19:57:32 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/Corsinvest/cv4pve-admin/pull/231

State: closed
Merged: Yes


Summary

  • Add OnDataLoaded EventCallback to ResourcesEx, fired after each data refresh
  • Nodes and Vms: replace OnAfterRenderAsync(firstRender) with OnDataLoaded handler to expand rows matching query string (?node= / ?vmid=)
  • Add _expanded guard to prevent double expansion on subsequent auto-refresh cycles

Test plan

  • Navigating to Resources > Nodes with ?node=pve1 auto-expands the matching node row
  • Navigating to Resources > VMs with ?vmid=100 auto-expands the matching VM row
  • No double expansion on periodic data refresh
**Original Pull Request:** https://github.com/Corsinvest/cv4pve-admin/pull/231 **State:** closed **Merged:** Yes --- ## Summary - Add `OnDataLoaded` `EventCallback` to `ResourcesEx`, fired after each data refresh - `Nodes` and `Vms`: replace `OnAfterRenderAsync(firstRender)` with `OnDataLoaded` handler to expand rows matching query string (`?node=` / `?vmid=`) - Add `_expanded` guard to prevent double expansion on subsequent auto-refresh cycles ## Test plan - [ ] Navigating to Resources > Nodes with `?node=pve1` auto-expands the matching node row - [ ] Navigating to Resources > VMs with `?vmid=100` auto-expands the matching VM row - [ ] No double expansion on periodic data refresh
kerem 2026-03-07 19:57:32 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cv4pve-admin#312
No description provided.