QFix: Show proper current employee (#8435)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2025-04-02 19:42:01 +07:00
committed by GitHub
parent b688e52f8a
commit 1f990867f5
3 changed files with 55 additions and 32 deletions
@@ -130,6 +130,25 @@
group: 'end'
})
}
if (hasAccountRole(account, AccountRole.User)) {
actions.push({
icon: setting.icon.Signout,
label: setting.string.SelectWorkspace,
action: async () => {
closePopup()
const loc = getCurrentResolvedLocation()
loc.fragment = undefined
loc.query = undefined
loc.path[0] = loginId
loc.path[1] = 'selectWorkspace'
loc.path.length = 2
navigate(loc)
},
group: 'end'
})
}
actions.push(
{
icon: setting.icon.Support,