platform/plugins/chunter-resources/src/components/EditChannelSettingsTab.svelte
Kristina a16b0a64d7
Fix chat actions labels (#6474)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
2024-09-04 01:14:17 +07:00

23 lines
557 B
Svelte

<script lang="ts">
import { Channel } from '@hcengineering/chunter'
import { Button } from '@hcengineering/ui'
import { createEventDispatcher } from 'svelte'
import { ArchiveChannel } from '../index'
import chunter from '../plugin'
export let channel: Channel
const dispatch = createEventDispatcher()
</script>
{#if channel}
<Button
label={chunter.string.ArchiveChannel}
justify={'left'}
size={'x-large'}
on:click={(evt) => {
ArchiveChannel(channel, evt, { afterArchive: () => dispatch('close') })
}}
/>
{/if}