uberf-12170: support merging person in addSocialIdToPerson (#9470)

This commit is contained in:
Alexey Zinoviev
2025-07-04 22:55:33 +05:00
committed by GitHub
parent ad61c7a87f
commit 8b5bfc35d1
3 changed files with 190 additions and 20 deletions
@@ -21,7 +21,15 @@
setCurrentAccount,
SocialId
} from '@hcengineering/core'
import { Button, Icon, Label, showPopup } from '@hcengineering/ui'
import {
Button,
getPlatformColorDef,
Icon,
Label,
PaletteColorIndexes,
showPopup,
themeStore
} from '@hcengineering/ui'
import contact, { SocialIdentityProvider, SocialIdentityRef } from '@hcengineering/contact'
import { getClient, MessageBox } from '@hcengineering/presentation'
import { setPlatformStatus, unknownError } from '@hcengineering/platform'
@@ -121,13 +129,15 @@
<div class="flex-grow" />
{#if isLogin}
<div class="tag flex-center">
{@const color = getPlatformColorDef(PaletteColorIndexes.Turquoise, $themeStore.dark)}
<div class="tag flex-center" style:background={color.background} style:border-color={color.color}>
<Label label={setting.string.Login} />
</div>
{/if}
{#if isPrimary}
<div class="tag flex-center">
{@const color = getPlatformColorDef(PaletteColorIndexes.Ocean, $themeStore.dark)}
<div class="tag flex-center" style:background={color.background} style:border-color={color.color}>
<Label label={setting.string.Primary} />
</div>
{/if}