mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-23 18:15:03 +02:00
QFix: Show proper current employee (#8435)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user