1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 09:26:03 +00:00

fix(console): a console the server closes says Connection lost, not Disconnected

The VNC and serial pages showed "Disconnected", as if the user had ended
the session, when the VM stopped, was migrated or the console daemon
restarted: noVNC calls a close by the server clean, and the serial page
had a single text. "Disconnected" is now kept for the user's own
Disconnect; any other end of a working connection is "Connection lost"
(the serial terminal still prints the server's reason).
This commit is contained in:
catborise 2026-11-10 18:58:20 +03:00
parent 27e3bd608f
commit 20706f295d
3 changed files with 8 additions and 3 deletions

View file

@ -14,6 +14,7 @@
{% block navbarstatus %}
<span id="status" class="badge text-bg-secondary" role="status"
data-connected="{% trans "Connected" %}" data-disconnected="{% trans "Disconnected" %}"
data-lost="{% trans "Connection lost" %}"
data-taken-over="{% trans "Taken over by %(name)s" %}"
data-hint="{% trans "Connected. If the VM shows nothing, press Enter." %}">{% trans "Connecting" %}</span>
{% endblock %}