From ef55125963eee7941574f7f0bd0a5826b8cfd43a Mon Sep 17 00:00:00 2001 From: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com> Date: Tue, 8 Feb 2022 15:03:45 +0600 Subject: [PATCH] 955 Fix (#958) Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com> --- models/gmail/src/index.ts | 2 +- plugins/contact-resources/src/components/Channels.svelte | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/models/gmail/src/index.ts b/models/gmail/src/index.ts index 99f36c0e79..e148ceaa6c 100644 --- a/models/gmail/src/index.ts +++ b/models/gmail/src/index.ts @@ -83,7 +83,7 @@ export function createModel (builder: Builder): void { contact.class.ChannelProvider, core.space.Model, { - label: 'Gmail' as IntlString, + label: 'Email' as IntlString, icon: contact.icon.Email, placeholder: 'john.appleseed@apple.com' as IntlString, presenter: gmail.component.Main, diff --git a/plugins/contact-resources/src/components/Channels.svelte b/plugins/contact-resources/src/components/Channels.svelte index 9939a5691a..c21db48b40 100644 --- a/plugins/contact-resources/src/components/Channels.svelte +++ b/plugins/contact-resources/src/components/Channels.svelte @@ -36,7 +36,9 @@ selected on:click={(ev) => showPopup(contact.component.SocialEditor, { values: channels }, ev.target, (result) => { - dispatch('change', result) + if (result !== undefined) { + dispatch('change', result) + } })} /> @@ -49,7 +51,9 @@ selected on:click={(ev) => showPopup(contact.component.SocialEditor, { values: channels }, ev.target, (result) => { - dispatch('change', result) + if (result !== undefined) { + dispatch('change', result) + } })} />