Fix remove login token modal callback

Corrected the callback function for the ‘Remove Login Token’ modal to properly execute the token removal. The previous implementation incorrectly wrapped the callback in an arrow function returning another function, preventing the logic from running.
This commit is contained in:
TheDevRyan 2025-10-18 10:34:35 +01:00
parent 4140656028
commit 3d0ea82425

View File

@ -14584,7 +14584,7 @@
x += addHtmlValue("Name", EscapeHtml(token.name));
x += addHtmlValue("Username", EscapeHtml(token.tokenUser));
setModalContent('xxAddAgent', "Remove Login Token", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton', () => function (b, tokenUser) { meshserver.send({ action: 'loginTokens', remove: [tokenUser] }); });
showModal('xxAddAgentModal', 'idx_dlgOkButton', function () { meshserver.send({ action: 'loginTokens', remove: [tokenUser] }); });
}
function gotoMesh(meshid) {