SSE to WebSocket

I needed to ping pong the content of the message because it was too long
for a SSE event. I swaped to websocket instead
This commit is contained in:
2024-08-05 18:22:51 +02:00
parent c7924476ee
commit 3266c8787e
13 changed files with 720 additions and 203 deletions
+2 -2
View File
@@ -145,7 +145,7 @@
type="button"
class="button is-small {% if not AnyExists %}is-danger{% endif %}">
<span class="icon is-small">
<i class="fa-solid fa-chevron-down"></i>
<i id="toggle-keys-icon" class="fa-solid fa-chevron-down"></i>
</span>
</button>
</p>
@@ -223,7 +223,7 @@
// Do not take the id="save-field"
var fields = document.querySelectorAll("#api-keys-form .field.has-addons");
var saveButton = document.getElementById('save-keys-button');
var toggleIcon = this.querySelector('i');
var toggleIcon = document.getElementById('toggle-keys-icon');
fields.forEach(function (field) {
if (field.id == "save-field") return;