From 8ddb1eac87962813157205e29bd781943ce8517e Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 24 Jan 2020 18:15:50 +0100 Subject: [PATCH 1/4] Add loading animation to post media --- src/app/components/feed/feed.component.ts | 2 -- src/app/components/feed/postlist/postlist.component.html | 7 ++++--- src/app/components/feed/postlist/postlist.component.ts | 5 +++++ src/app/models/post.ts | 2 ++ src/app/services/feed/feed.service.ts | 2 +- 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/app/components/feed/feed.component.ts b/src/app/components/feed/feed.component.ts index ad17f55..2dad603 100644 --- a/src/app/components/feed/feed.component.ts +++ b/src/app/components/feed/feed.component.ts @@ -92,7 +92,6 @@ export class FeedComponent implements OnInit { } else if (postElement) { this.posting = true; this.feedService.createPost(postElement.value, this.file).subscribe((result) => { - console.log('response in component'); this.posting = false; postElement.value = ''; this.textInputValue = ''; @@ -104,7 +103,6 @@ export class FeedComponent implements OnInit { this.showNew(); } }, (error: IErrorResponse) => { - console.log('an error occured in component'); console.log(error); this.posting = false; this.errorOccurred = true; diff --git a/src/app/components/feed/postlist/postlist.component.html b/src/app/components/feed/postlist/postlist.component.html index 50f13eb..2ffa144 100644 --- a/src/app/components/feed/postlist/postlist.component.html +++ b/src/app/components/feed/postlist/postlist.component.html @@ -22,9 +22,10 @@ -
- post image -