diff --git a/models/contact/src/index.ts b/models/contact/src/index.ts
index 2309e5a462..a0f33937a4 100644
--- a/models/contact/src/index.ts
+++ b/models/contact/src/index.ts
@@ -400,12 +400,22 @@ export function createModel (builder: Builder): void {
{
label: contact.string.Whatsapp,
icon: contact.icon.Whatsapp,
- placeholder: contact.string.WhatsappPlaceholder,
- action: contact.actionImpl.OpenChannel
+ placeholder: contact.string.WhatsappPlaceholder
},
contact.channelProvider.Whatsapp
)
+ builder.createDoc(
+ contact.class.ChannelProvider,
+ core.space.Model,
+ {
+ label: contact.string.Profile,
+ icon: contact.icon.Profile,
+ placeholder: contact.string.ProfilePlaceholder
+ },
+ contact.channelProvider.Profile
+ )
+
builder.createDoc(
contact.class.AvatarProvider,
core.space.Model,
diff --git a/models/contact/src/plugin.ts b/models/contact/src/plugin.ts
index 416f436cff..7f719c1d7a 100644
--- a/models/contact/src/plugin.ts
+++ b/models/contact/src/plugin.ts
@@ -75,6 +75,8 @@ export default mergeIds(contactId, contact, {
CreatedOn: '' as IntlString,
Whatsapp: '' as IntlString,
WhatsappPlaceholder: '' as IntlString,
+ Profile: '' as IntlString,
+ ProfilePlaceholder: '' as IntlString,
CurrentEmployee: '' as IntlString
},
completion: {
diff --git a/models/gmail/src/index.ts b/models/gmail/src/index.ts
index e86721064e..bd80a6b4c8 100644
--- a/models/gmail/src/index.ts
+++ b/models/gmail/src/index.ts
@@ -177,7 +177,7 @@ export function createModel (builder: Builder): void {
_objects: 'value'
}
},
- label: gmail.string.WrtieEmail,
+ label: gmail.string.WriteEmail,
icon: contact.icon.Email,
keyBinding: [],
input: 'any',
diff --git a/plugins/contact-assets/assets/icons.svg b/plugins/contact-assets/assets/icons.svg
index cd0ff49629..1878c633f1 100644
--- a/plugins/contact-assets/assets/icons.svg
+++ b/plugins/contact-assets/assets/icons.svg
@@ -65,5 +65,8 @@
-
+
+
+
+
diff --git a/plugins/contact-assets/lang/en.json b/plugins/contact-assets/lang/en.json
index 6bb1e5fec4..b23af7be1e 100644
--- a/plugins/contact-assets/lang/en.json
+++ b/plugins/contact-assets/lang/en.json
@@ -73,6 +73,8 @@
"CreatedOn": "Created",
"Whatsapp": "Whatsapp",
"WhatsappPlaceholder": "Whatsapp",
+ "Profile": "Profile",
+ "ProfilePlaceholder": "Profile...",
"CurrentEmployee": "Current employee"
}
}
\ No newline at end of file
diff --git a/plugins/contact-assets/lang/ru.json b/plugins/contact-assets/lang/ru.json
index fc67a418f1..32fafa00fa 100644
--- a/plugins/contact-assets/lang/ru.json
+++ b/plugins/contact-assets/lang/ru.json
@@ -73,6 +73,8 @@
"CreatedOn": "Создан",
"Whatsapp": "Whatsapp",
"WhatsappPlaceholder": "Whatsapp",
+ "Profile": "Профиль",
+ "ProfilePlaceholder": "Профиль...",
"CurrentEmployee": "Текущий сотрудник"
}
}
\ No newline at end of file
diff --git a/plugins/contact-assets/src/index.ts b/plugins/contact-assets/src/index.ts
index c509f78d1c..4fcbff4529 100644
--- a/plugins/contact-assets/src/index.ts
+++ b/plugins/contact-assets/src/index.ts
@@ -36,6 +36,7 @@ loadMetadata(contact.icon, {
Company: `${icons}#company`,
SocialEdit: `${icons}#social-edit`,
Homepage: `${icons}#homepage`,
- Whatsapp: `${icons}#whatsapp`
+ Whatsapp: `${icons}#whatsapp`,
+ Profile: `${icons}#profile`
})
addStringsLoader(contactId, async (lang: string) => await import(`../lang/${lang}.json`))
diff --git a/plugins/contact-resources/src/components/ChannelsDropdown.svelte b/plugins/contact-resources/src/components/ChannelsDropdown.svelte
index 03e7bbd2c2..e8f22e3372 100644
--- a/plugins/contact-resources/src/components/ChannelsDropdown.svelte
+++ b/plugins/contact-resources/src/components/ChannelsDropdown.svelte
@@ -168,6 +168,7 @@
}
const saveItems = (): void => {
value = filterUndefined(displayItems)
+ dispatch('change', value)
updateMenu(displayItems)
}
diff --git a/plugins/contact-resources/src/components/ChannelsEditor.svelte b/plugins/contact-resources/src/components/ChannelsEditor.svelte
index 0ebe121239..2e998d5364 100644
--- a/plugins/contact-resources/src/components/ChannelsEditor.svelte
+++ b/plugins/contact-resources/src/components/ChannelsEditor.svelte
@@ -18,7 +18,7 @@
import { createQuery, getClient } from '@hcengineering/presentation'
import { ButtonKind, ButtonSize, closeTooltip } from '@hcengineering/ui'
- import { ChannelProvider, Channel } from '@hcengineering/contact'
+ import { Channel, ChannelProvider } from '@hcengineering/contact'
import { showPopup } from '@hcengineering/ui'
import contact from '../plugin'
import ChannelsDropdown from './ChannelsDropdown.svelte'
diff --git a/plugins/contact/src/index.ts b/plugins/contact/src/index.ts
index f412d13a36..3cb4df2a64 100644
--- a/plugins/contact/src/index.ts
+++ b/plugins/contact/src/index.ts
@@ -232,7 +232,8 @@ const contactPlugin = plugin(contactId, {
GitHub: '' as Ref,
Facebook: '' as Ref,
Homepage: '' as Ref,
- Whatsapp: '' as Ref
+ Whatsapp: '' as Ref,
+ Profile: '' as Ref
},
avatarProvider: {
Color: '' as Ref,
@@ -263,7 +264,8 @@ const contactPlugin = plugin(contactId, {
Company: '' as Asset,
SocialEdit: '' as Asset,
Homepage: '' as Asset,
- Whatsapp: '' as Asset
+ Whatsapp: '' as Asset,
+ Profile: '' as Asset
},
space: {
Employee: '' as Ref,
diff --git a/plugins/gmail-assets/lang/en.json b/plugins/gmail-assets/lang/en.json
index 221b6c4eec..3175dc66c8 100644
--- a/plugins/gmail-assets/lang/en.json
+++ b/plugins/gmail-assets/lang/en.json
@@ -30,7 +30,7 @@
"Email": "Email",
"Status": "Status",
"EmailPlaceholder": "john.appleseed@apple.com",
- "WrtieEmail": "Wrtie Email",
+ "WriteEmail": "Write Email",
"Shared": "Shared",
"AvailableTo": "Available to"
}
diff --git a/plugins/gmail-assets/lang/ru.json b/plugins/gmail-assets/lang/ru.json
index a05e5b2a58..803925f47d 100644
--- a/plugins/gmail-assets/lang/ru.json
+++ b/plugins/gmail-assets/lang/ru.json
@@ -30,7 +30,7 @@
"Email": "Email",
"Status": "Статус",
"EmailPlaceholder": "john.appleseed@apple.com",
- "WrtieEmail": "Написать Email",
+ "WriteEmail": "Написать Email",
"Shared": "Публичный",
"AvailableTo": "Доступен для"
}
diff --git a/plugins/gmail-resources/src/plugin.ts b/plugins/gmail-resources/src/plugin.ts
index 12984fc4ff..93c83b0388 100644
--- a/plugins/gmail-resources/src/plugin.ts
+++ b/plugins/gmail-resources/src/plugin.ts
@@ -39,7 +39,7 @@ export default mergeIds(gmailId, gmail, {
Cancel: '' as IntlString,
SubjectPlaceholder: '' as IntlString,
CopyPlaceholder: '' as IntlString,
- WrtieEmail: '' as IntlString,
+ WriteEmail: '' as IntlString,
Shared: '' as IntlString,
AvailableTo: '' as IntlString
}