From dddd6f5503a8b8051ed905b698d4fe930317542d Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Sat, 28 Nov 2020 14:50:14 +0100 Subject: [PATCH] added buttons to view documents in the browser. fixes #55 --- .../document-card-large.component.html | 7 +++++++ .../document-card-large.component.ts | 4 ++++ .../document-card-small.component.html | 10 ++++++++-- .../document-card-small.component.ts | 4 ++++ src-ui/src/app/components/search/search.component.scss | 2 +- 5 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html index 305cb37d2..2ef5875fe 100644 --- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html +++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html @@ -24,6 +24,13 @@ Edit + + + + + + View + diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts index 1c1e110c0..db634e83c 100644 --- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts +++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts @@ -41,4 +41,8 @@ export class DocumentCardLargeComponent implements OnInit { getDownloadUrl() { return this.documentService.getDownloadUrl(this.document.id) } + + getPreviewUrl() { + return this.documentService.getPreviewUrl(this.document.id) + } } diff --git a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html index 022b92a4d..85dc94dd8 100644 --- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html +++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html @@ -16,12 +16,18 @@