MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / setActiveUser

Function setActiveUser

deployments/desktop/static/app.js:471–480  ·  view source on GitHub ↗
(userId)

Source from the content-addressed store, hash-verified

469}
470
471function setActiveUser(userId) {
472 const nextUserId = String(userId || "").trim();
473 state.userId = nextUserId;
474 if (nextUserId && hasUserOption(nextUserId)) {
475 $("userSelect").value = nextUserId;
476 }
477 $("profileUserId").value = nextUserId || $("profileUserId").value;
478 renderRoles(state.roles);
479 return state.userId;
480}
481
482function activeUser() {
483 const select = $("userSelect");

Callers 6

activeUserFunction · 0.85
renderUsersFunction · 0.85
updateRoleFunction · 0.85
syncRoleForUserFunction · 0.85
saveProfileFunction · 0.85
bindEventsFunction · 0.85

Calls 3

hasUserOptionFunction · 0.85
renderRolesFunction · 0.85
$Function · 0.70

Tested by

no test coverage detected