mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 11:01:54 +03:00
Fix bot popup closing (#6430)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
0233e31b8d
commit
1bd66c64da
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user