Add board activity (#1613)

Signed-off-by: Dvinyanin Alexandr <dvinyanin.alexandr@gmail.com>
This commit is contained in:
Alex 2022-05-02 11:22:42 +07:00 committed by GitHub
parent e253148103
commit 12602cea3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,21 @@
<script lang="ts"> <script lang="ts">
import { Button } from '@anticrm/ui' import { Button, Component } from '@anticrm/ui'
import { createEventDispatcher } from 'svelte' import { createEventDispatcher } from 'svelte'
import activity from '@anticrm/activity'
import board from '@anticrm/board' import board from '@anticrm/board'
import plugin from '../plugin' import plugin from '../plugin'
import { createQuery } from '@anticrm/presentation'
import core, { Ref, Space } from '@anticrm/core'
export let space: Ref<Space>
let object: Space
const dispatch = createEventDispatcher() const dispatch = createEventDispatcher()
const query = createQuery()
$: query.query(core.class.Space, { _id: space }, (result) => {
;[object] = result
})
</script> </script>
<div class="p-4"> <div class="p-4">
@ -15,4 +26,7 @@
dispatch('change', board.menuPageId.Archive) dispatch('change', board.menuPageId.Archive)
}} }}
/> />
{#if object}
<Component is={activity.component.Activity} props={{ object, showCommenInput: false, transparent: true }} />
{/if}
</div> </div>