From 36008c6f8d5883e92492bd39e7e85564310fae36 Mon Sep 17 00:00:00 2001 From: mdelez <60604010+mdelez@users.noreply.github.com> Date: Wed, 7 Sep 2022 10:57:47 +0200 Subject: [PATCH] feat(document): document viewer for non-pdf documents (DEV-1303) (#812) * feat(document): add default document viewer if document is not a pdf * fix(document): call correct function for downloading document file * chore(document): remove console log --- .../document/document.component.html | 123 +++++++++----- .../document/document.component.scss | 32 +++- .../document/document.component.spec.ts | 159 +++++++++++++++--- .../document/document.component.ts | 19 ++- .../resource/resource.component.html | 3 +- src/assets/style/_elements.scss | 8 +- 6 files changed, 269 insertions(+), 75 deletions(-) diff --git a/src/app/workspace/resource/representation/document/document.component.html b/src/app/workspace/resource/representation/document/document.component.html index e92732262a..8ced3a1288 100644 --- a/src/app/workspace/resource/representation/document/document.component.html +++ b/src/app/workspace/resource/representation/document/document.component.html @@ -1,4 +1,4 @@ -
{{originalFilename}}
+