Skip to content

Commit

Permalink
Suppress top 'Show profile' link whic doesn't work properly. Supersed…
Browse files Browse the repository at this point in the history
…ed by 'Your Profile' menu item and tab.
  • Loading branch information
timbl committed Nov 17, 2024
1 parent a155916 commit f230b57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mainPage/header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,14 @@ async function setUserMenu (outliner: any) {
}

// the order of the menu is important here, show profile first and logout last
let userMenuList = [showProfile]
let userMenuList = [] // was [showProfile]
userMenuList = userMenuList.concat(await getMenuItems(outliner))
userMenuList.push(logOut)

return userMenuList
}

// Does not work to jump to user profile,
function openUserProfile (outliner: any) {
outliner.GotoSubject(authn.currentUser(), true, undefined, true, undefined)
location.reload()
Expand Down

0 comments on commit f230b57

Please sign in to comment.