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

Function loadCurrentProfile

deployments/desktop/static/desktop.js:5065–5073  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5063 }
5064
5065 async function loadCurrentProfile() {
5066 const userId = currentUser();
5067 if (!userId) return;
5068 const token = ++state.profileLoadToken;
5069 setProfileSyncStatus(ui().settings.profileFields.loading);
5070 const data = await api(`/api/profile?user_id=${encodeURIComponent(userId)}`);
5071 if (token !== state.profileLoadToken) return;
5072 renderProfileForm(data);
5073 }
5074
5075 function conferenceAccessInfo(item) {
5076 const source = String(item.source || item.label || item.id || "").toLowerCase();

Callers 2

loadSettingsFunction · 0.85
bindEventsFunction · 0.85

Calls 5

currentUserFunction · 0.85
setProfileSyncStatusFunction · 0.85
uiFunction · 0.85
renderProfileFormFunction · 0.85
apiFunction · 0.70

Tested by

no test coverage detected