fix main change owner route, fix group create id return, add new client

This commit is contained in:
2026-04-02 23:29:45 +02:00
parent 3d1c7afdd7
commit 922f13c64f
4 changed files with 10 additions and 17 deletions
+4 -4
View File
@@ -88,7 +88,7 @@
let ws = null;
let activeForm = null;
const forms = {
var formDefs = {
'new-client': {
title: 'POST /new/client — register new user',
fields: [
@@ -214,10 +214,10 @@
}
activeForm = name;
const def = forms[name];
const def = formDefs[name];
// activate clicked button
const idx = Object.keys(forms).indexOf(name);
const idx = Object.keys(formDefs).indexOf(name);
if (idx >= 0) {
buttons[idx].classList.add('active');
if (name === 'websocket') buttons[idx].classList.add('ws');
@@ -236,7 +236,7 @@
${f.hint ? `<span class="hint">${f.hint}</span>` : ''}
</div>`;
}
html += `<div class="form-actions"><button class="send" onclick="forms['${name}'].submit()">Send</button></div>`;
html += `<div class="form-actions"><button class="send" onclick="formDefs['${name}'].submit()">Send</button></div>`;
fieldsEl.innerHTML = html;
}