Fix remove login token modal callback (#7359)

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:42:06 +01:00 committed by GitHub
parent 4140656028
commit 64ece1df90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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) {