mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-08 21:27:45 +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 presentation from '@hcengineering/presentation'
|
||||||
import { getEmbeddedLabel, getMetadata, IntlString } from '@hcengineering/platform'
|
import { getEmbeddedLabel, getMetadata, IntlString } from '@hcengineering/platform'
|
||||||
import { concatLink, getCurrentAccount } from '@hcengineering/core'
|
import { concatLink, getCurrentAccount } from '@hcengineering/core'
|
||||||
import { onMount } from 'svelte'
|
import { createEventDispatcher, onMount } from 'svelte'
|
||||||
|
|
||||||
import telegram from '../plugin'
|
import telegram from '../plugin'
|
||||||
import TelegramColor from './icons/TelegramColor.svelte'
|
import TelegramColor from './icons/TelegramColor.svelte'
|
||||||
@ -31,6 +31,7 @@
|
|||||||
let isLoading = false
|
let isLoading = false
|
||||||
|
|
||||||
const url = getMetadata(telegram.metadata.BotUrl) ?? ''
|
const url = getMetadata(telegram.metadata.BotUrl) ?? ''
|
||||||
|
const dispatch = createEventDispatcher()
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
void loadBotInfo()
|
void loadBotInfo()
|
||||||
@ -117,7 +118,9 @@
|
|||||||
label={getEmbeddedLabel('Connect Telegram Bot')}
|
label={getEmbeddedLabel('Connect Telegram Bot')}
|
||||||
type="type-popup"
|
type="type-popup"
|
||||||
okLabel={presentation.string.Ok}
|
okLabel={presentation.string.Ok}
|
||||||
okAction={() => {}}
|
okAction={() => {
|
||||||
|
dispatch('close')
|
||||||
|
}}
|
||||||
showCancelButton={false}
|
showCancelButton={false}
|
||||||
canSave
|
canSave
|
||||||
on:close
|
on:close
|
||||||
|
Loading…
Reference in New Issue
Block a user