Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2021-12-07 10:05:52 +01:00
committed by GitHub
parent 09ffb23a2b
commit df1ec7186f
65 changed files with 1537 additions and 245 deletions
@@ -17,11 +17,11 @@
import { Panel } from '@anticrm/panel'
import { createQuery, getClient } from '@anticrm/presentation'
import type { Task } from '@anticrm/task'
import { Component, EditBox, Grid } from '@anticrm/ui'
import { EditBox, Grid } from '@anticrm/ui'
import view from '@anticrm/view'
import { createEventDispatcher } from 'svelte'
import task from '../plugin'
import attachment from '@anticrm/attachment'
import { Attachments } from '@anticrm/attachment-resources'
import TaskHeader from './TaskHeader.svelte'
export let _id: Ref<Task>
@@ -72,19 +72,7 @@
</Grid>
<div class="mt-14">
<Component is={attachment.component.Attachments} props={{ objectId: object._id, _class:object._class, space: object.space, noLabel: task.string.NoAttachmentsForTask }} />
<Attachments objectId={object._id} _class={object._class} space={object.space} noLabel={task.string.NoAttachmentsForTask} />
</div>
</Panel>
{/if}
<style lang="scss">
.attachments {
margin-top: 3.5rem;
}
.grid-cards {
display: grid;
grid-template-columns: 1fr 1fr;
column-gap: 1.5rem;
}
</style>
@@ -13,7 +13,8 @@
// limitations under the License.
-->
<script lang="ts">
import { AttachmentsPresenter, CommentsPresenter } from '@anticrm/chunter-resources'
import { CommentsPresenter } from '@anticrm/chunter-resources'
import { AttachmentsPresenter } from '@anticrm/attachment-resources'
import { formatName } from '@anticrm/contact'
import type { WithLookup } from '@anticrm/core'
import { Avatar } from '@anticrm/presentation'