mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-24 09:16:43 +00:00
23 lines
557 B
Svelte
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}
|