mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-25 04:25:13 +03:00
Add board activity (#1613)
Signed-off-by: Dvinyanin Alexandr <dvinyanin.alexandr@gmail.com>
This commit is contained in:
parent
e253148103
commit
12602cea3f
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user