mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-23 18:15:03 +02:00
UBERF-6068 Show collaborators in collaborative editors (#5335)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
//
|
||||
// Copyright © 2020, 2021 Anticrm Platform Contributors.
|
||||
// Copyright © 2021 Hardcore Engineering Inc.
|
||||
// Copyright © 2021, 2024 Hardcore Engineering Inc.
|
||||
//
|
||||
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License. You may
|
||||
@@ -65,8 +65,10 @@ import {
|
||||
isAdminUser,
|
||||
createQuery
|
||||
} from '@hcengineering/presentation'
|
||||
import { type CollaborationUser } from '@hcengineering/text-editor'
|
||||
import {
|
||||
ErrorPresenter,
|
||||
getColorNumberByText,
|
||||
getCurrentResolvedLocation,
|
||||
getPanelURI,
|
||||
getPlatformColorForText,
|
||||
@@ -1402,3 +1404,15 @@ permissionsQuery.query(core.class.Space, {}, (res) => {
|
||||
whitelist: whitelistedSpaces
|
||||
})
|
||||
})
|
||||
|
||||
export function getCollaborationUser (): CollaborationUser {
|
||||
const me = getCurrentAccount() as PersonAccount
|
||||
const color = getColorNumberByText(me.email)
|
||||
|
||||
return {
|
||||
id: me._id,
|
||||
name: me.email,
|
||||
email: me.email,
|
||||
color
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user