From 80d5f633c31ed28d69e5e4c56decda6b4f3ea46d Mon Sep 17 00:00:00 2001 From: Andrey Platov Date: Sat, 23 Oct 2021 18:48:22 +0200 Subject: [PATCH] show attachments in popup Signed-off-by: Andrey Platov --- plugins/chunter-resources/package.json | 3 +- .../src/components/AttachmentPopup.svelte | 72 +++---------------- .../src/components/AttachmentPresenter.svelte | 4 +- 3 files changed, 14 insertions(+), 65 deletions(-) diff --git a/plugins/chunter-resources/package.json b/plugins/chunter-resources/package.json index c4938a37d8..b69a835f1a 100644 --- a/plugins/chunter-resources/package.json +++ b/plugins/chunter-resources/package.json @@ -24,6 +24,7 @@ "@anticrm/chunter":"~0.6.0", "svelte":"^3.37.0", "@anticrm/text-editor":"~0.6.0", - "@anticrm/contact": "~0.6.0" + "@anticrm/contact": "~0.6.0", + "@anticrm/view-resources": "~0.6.0" } } diff --git a/plugins/chunter-resources/src/components/AttachmentPopup.svelte b/plugins/chunter-resources/src/components/AttachmentPopup.svelte index 719a6ae030..c7fe8bac48 100644 --- a/plugins/chunter-resources/src/components/AttachmentPopup.svelte +++ b/plugins/chunter-resources/src/components/AttachmentPopup.svelte @@ -17,71 +17,17 @@ - - - - -
- - + diff --git a/plugins/chunter-resources/src/components/AttachmentPresenter.svelte b/plugins/chunter-resources/src/components/AttachmentPresenter.svelte index d7230651c3..ab4fc8df91 100644 --- a/plugins/chunter-resources/src/components/AttachmentPresenter.svelte +++ b/plugins/chunter-resources/src/components/AttachmentPresenter.svelte @@ -16,6 +16,8 @@ -
+
{ closeTooltip(); showPopup(PDFViewer, { file: value.file }, 'right') }}>
PDF
{trimFilename(value.name)}