From 753b68265f6b6bcad510dc9c39c935b56c3c407f Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 2 Feb 2021 18:01:00 +0200 Subject: Improved handling of attachment (file) names in post page and feed --- src/DevHive.Angular/src/app/components/feed/feed.component.html | 2 +- .../src/app/components/post-page/post-page.component.html | 2 +- src/DevHive.Angular/src/app/components/post-page/post-page.component.ts | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/DevHive.Angular') diff --git a/src/DevHive.Angular/src/app/components/feed/feed.component.html b/src/DevHive.Angular/src/app/components/feed/feed.component.html index a50d9fb..6d3da5f 100644 --- a/src/DevHive.Angular/src/app/components/feed/feed.component.html +++ b/src/DevHive.Angular/src/app/components/feed/feed.component.html @@ -27,7 +27,7 @@
- {{ file.name }} + {{ file.name ? file.name : 'Attachment' }}
diff --git a/src/DevHive.Angular/src/app/components/post-page/post-page.component.html b/src/DevHive.Angular/src/app/components/post-page/post-page.component.html index 8fb998e..da9bcc9 100644 --- a/src/DevHive.Angular/src/app/components/post-page/post-page.component.html +++ b/src/DevHive.Angular/src/app/components/post-page/post-page.component.html @@ -17,7 +17,7 @@
- {{ file.name }} + {{ file.name ? file.name : 'Attachment' }}
diff --git a/src/DevHive.Angular/src/app/components/post-page/post-page.component.ts b/src/DevHive.Angular/src/app/components/post-page/post-page.component.ts index cf5934e..8796f20 100644 --- a/src/DevHive.Angular/src/app/components/post-page/post-page.component.ts +++ b/src/DevHive.Angular/src/app/components/post-page/post-page.component.ts @@ -66,7 +66,6 @@ export class PostPageComponent implements OnInit { this._cloudinaryService.getFileRequest(fileURL).subscribe( (result: object) => { const file = result as File; - file.name = 'Attachment'; this.files.push(file); } ); -- cgit v1.2.3