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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user