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:
parent
7dd68aaca4
commit
effe2a33f0
8 changed files with 29 additions and 18 deletions
|
|
@ -1,5 +1,6 @@
|
|||
{% load static %}
|
||||
{# the VM list reloads when its VMs change: vm_states.js #}
|
||||
{{ states_url|json_script:"vm-states-url" }}
|
||||
{{ vm_states|json_script:"vm-states" }}
|
||||
<script src="{% static 'js/vm_states.js' %}"></script>
|
||||
<script src="{% static 'js/vm_states_start.js' %}"></script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue