mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 12:52:54 -05:00
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:
@@ -14584,7 +14584,7 @@
|
|||||||
x += addHtmlValue("Name", EscapeHtml(token.name));
|
x += addHtmlValue("Name", EscapeHtml(token.name));
|
||||||
x += addHtmlValue("Username", EscapeHtml(token.tokenUser));
|
x += addHtmlValue("Username", EscapeHtml(token.tokenUser));
|
||||||
setModalContent('xxAddAgent', "Remove Login Token", x);
|
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) {
|
function gotoMesh(meshid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user