open attachment

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-09-12 18:30:30 +02:00
parent 8aa6c6305f
commit 7e020c2891
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0

View File

@ -14,12 +14,13 @@
-->
<script lang="ts">
import { CircleButton, IconAdd } from '@anticrm/ui'
import { CircleButton, IconAdd, showPopup } from '@anticrm/ui'
import type { Doc, Ref, Space } from '@anticrm/core'
import { generateId } from '@anticrm/core'
import { createQuery, getClient } from '@anticrm/presentation'
import type { Attachment } from '@anticrm/chunter'
import PDFViewer from './PDFViewer.svelte'
import { uploadFile } from '../utils'
@ -84,7 +85,7 @@
<tr class="tr-body">
<td class="item flex-row-center">
<div class="flex-center file-icon">pdf</div>
<div class="flex-col flex-grow">
<div class="flex-col flex-grow" style="cursor: pointer" on:click={ () => { showPopup(PDFViewer, { file: file.file }, 'right') } }>
<div class="overflow-label caption-color">{file.name}</div>
<div class="overflow-label file-desc">{file.type}</div>
</div>