mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 03:14:40 +03:00
TSK-769: Fix channel editor (#2704)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
bd6ef3aa57
commit
7b14204aab
@ -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,
|
||||
|
@ -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: {
|
||||
|
@ -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',
|
||||
|
@ -65,5 +65,8 @@
|
||||
<symbol id="homepage" viewBox="0 0 24 24">
|
||||
<path d="M12,1.2C6.1,1.2,1.2,6.1,1.2,12S6.1,22.8,12,22.8S22.8,17.9,22.8,12S17.9,1.2,12,1.2z M20.8,14.3 c-1.2,0.4-2.5,0.7-3.8,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0.7-1.2,1.4-1.7c2.5-1.6,6.6-1.6,9.1,0C17.3,17.9,17.7,18.5,17.9,19.1C17.9,19.1,17.9,19.1,17.9,19.1z" />
|
||||
</symbol>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 14 KiB |
@ -73,6 +73,8 @@
|
||||
"CreatedOn": "Created",
|
||||
"Whatsapp": "Whatsapp",
|
||||
"WhatsappPlaceholder": "Whatsapp",
|
||||
"Profile": "Profile",
|
||||
"ProfilePlaceholder": "Profile...",
|
||||
"CurrentEmployee": "Current employee"
|
||||
}
|
||||
}
|
@ -73,6 +73,8 @@
|
||||
"CreatedOn": "Создан",
|
||||
"Whatsapp": "Whatsapp",
|
||||
"WhatsappPlaceholder": "Whatsapp",
|
||||
"Profile": "Профиль",
|
||||
"ProfilePlaceholder": "Профиль...",
|
||||
"CurrentEmployee": "Текущий сотрудник"
|
||||
}
|
||||
}
|
@ -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`))
|
||||
|
@ -168,6 +168,7 @@
|
||||
}
|
||||
const saveItems = (): void => {
|
||||
value = filterUndefined(displayItems)
|
||||
dispatch('change', value)
|
||||
updateMenu(displayItems)
|
||||
}
|
||||
|
||||
|
@ -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'
|
||||
|
@ -232,7 +232,8 @@ const contactPlugin = plugin(contactId, {
|
||||
GitHub: '' as Ref<ChannelProvider>,
|
||||
Facebook: '' as Ref<ChannelProvider>,
|
||||
Homepage: '' as Ref<ChannelProvider>,
|
||||
Whatsapp: '' as Ref<ChannelProvider>
|
||||
Whatsapp: '' as Ref<ChannelProvider>,
|
||||
Profile: '' as Ref<ChannelProvider>
|
||||
},
|
||||
avatarProvider: {
|
||||
Color: '' as Ref<AvatarProvider>,
|
||||
@ -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<Space>,
|
||||
|
@ -30,7 +30,7 @@
|
||||
"Email": "Email",
|
||||
"Status": "Status",
|
||||
"EmailPlaceholder": "john.appleseed@apple.com",
|
||||
"WrtieEmail": "Wrtie Email",
|
||||
"WriteEmail": "Write Email",
|
||||
"Shared": "Shared",
|
||||
"AvailableTo": "Available to"
|
||||
}
|
||||
|
@ -30,7 +30,7 @@
|
||||
"Email": "Email",
|
||||
"Status": "Статус",
|
||||
"EmailPlaceholder": "john.appleseed@apple.com",
|
||||
"WrtieEmail": "Написать Email",
|
||||
"WriteEmail": "Написать Email",
|
||||
"Shared": "Публичный",
|
||||
"AvailableTo": "Доступен для"
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user