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.
TheDevRyan committed
Oct 18, 2025 at 10:42 UTC
64ece1df909415226294bd6031e2b44bcf549f1b
1 file changed
+1
-1
views/default3.handlebars
+1
-1
@@ -14584,7 +14584,7 @@
14584
x += addHtmlValue("Name", EscapeHtml(token.name));
14585
x += addHtmlValue("Username", EscapeHtml(token.tokenUser));
14586
setModalContent('xxAddAgent', "Remove Login Token", x);
14587
- showModal('xxAddAgentModal', 'idx_dlgOkButton', () => function (b, tokenUser) { meshserver.send({ action: 'loginTokens', remove: [tokenUser] }); });
14587
+ showModal('xxAddAgentModal', 'idx_dlgOkButton', function () { meshserver.send({ action: 'loginTokens', remove: [tokenUser] }); });
14588
}
14589
14590
function gotoMesh(meshid) {