1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00
webvirtcloud/static/js/vm_states_start.js
catborise 52bb6487a3 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.
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));