fix: detach closed update viewers and preserve other guest state

This commit is contained in:
VAIO73
2026-10-26 07:57:20 +00:00
parent 11326badb2
commit fd74b3cacc
4 changed files with 71 additions and 3 deletions
+6
View File
@@ -2711,6 +2711,12 @@ export function VirtualMachines() {
// performs the requests (the data map is only a render seed), so no
// invalidation is needed and there is no "Loading applications" flash.
void fetchLxcApps(applyVmid)
// Recovery can be opened from the job banner while another CT is selected.
// Refresh the operated guest without changing that other guest's result UI.
if (selectedVMRef.current?.vmid !== applyVmid) {
void mutate()
return
}
// Enter the "Comprobando resultado…" state on the Updates tab.
// Baseline snapshot lets a downstream useEffect detect when the
// SWR poll actually delivers the post-apply counts (as opposed