1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-01 16:36:06 +00:00

fix(instances): a VM list notices a change made while the page was read

The VM lists took the poll's first answer as what the page showed: a VM
started or stopped between the page's read and that answer kept its old
state and buttons until the next change. The page now carries the states
read before its rows, and the poll compares its first answer with them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
catborise 2026-11-11 14:30:18 +03:00
parent 7dd68aaca4
commit effe2a33f0
8 changed files with 29 additions and 18 deletions

View file

@ -1,2 +1,3 @@
// Starts following the VM list's states (vm_states_poll.html).
followVmStates(JSON.parse(document.getElementById("vm-states-url").textContent));
followVmStates(JSON.parse(document.getElementById("vm-states-url").textContent),
JSON.parse(document.getElementById("vm-states").textContent));