1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 12:46:49 +00:00
webvirtcloud/static/js/vm_states_start.js
catborise effe2a33f0 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
2026-11-11 15:17:59 +03:00

3 lines
223 B
JavaScript

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