From 1bd66c64da45de34d7c72e39ffb4316ff277e44f Mon Sep 17 00:00:00 2001 From: Kristina Date: Wed, 28 Aug 2024 21:50:17 +0400 Subject: [PATCH] Fix bot popup closing (#6430) Signed-off-by: Kristina Fefelova --- .../src/components/ConfigureBotPopup.svelte | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/telegram-resources/src/components/ConfigureBotPopup.svelte b/plugins/telegram-resources/src/components/ConfigureBotPopup.svelte index be35c8267b..928bf1a8eb 100644 --- a/plugins/telegram-resources/src/components/ConfigureBotPopup.svelte +++ b/plugins/telegram-resources/src/components/ConfigureBotPopup.svelte @@ -18,7 +18,7 @@ import presentation from '@hcengineering/presentation' import { getEmbeddedLabel, getMetadata, IntlString } from '@hcengineering/platform' import { concatLink, getCurrentAccount } from '@hcengineering/core' - import { onMount } from 'svelte' + import { createEventDispatcher, onMount } from 'svelte' import telegram from '../plugin' import TelegramColor from './icons/TelegramColor.svelte' @@ -31,6 +31,7 @@ let isLoading = false const url = getMetadata(telegram.metadata.BotUrl) ?? '' + const dispatch = createEventDispatcher() onMount(() => { void loadBotInfo() @@ -117,7 +118,9 @@ label={getEmbeddedLabel('Connect Telegram Bot')} type="type-popup" okLabel={presentation.string.Ok} - okAction={() => {}} + okAction={() => { + dispatch('close') + }} showCancelButton={false} canSave on:close