|
|
@ -81,7 +81,6 @@ export class FeedComponent implements OnInit {
|
|
|
|
if (postElement && activityId && this.checked) {
|
|
|
|
if (postElement && activityId && this.checked) {
|
|
|
|
this.posting = true;
|
|
|
|
this.posting = true;
|
|
|
|
this.feedService.createPostActivity(postElement.value, activityId, this.file).subscribe(() => {
|
|
|
|
this.feedService.createPostActivity(postElement.value, activityId, this.file).subscribe(() => {
|
|
|
|
postElement.value = '';
|
|
|
|
|
|
|
|
}, (error: IErrorResponse) => {
|
|
|
|
}, (error: IErrorResponse) => {
|
|
|
|
this.errorOccurred = true;
|
|
|
|
this.errorOccurred = true;
|
|
|
|
this.posting = false;
|
|
|
|
this.posting = false;
|
|
|
@ -90,7 +89,6 @@ export class FeedComponent implements OnInit {
|
|
|
|
} else if (postElement) {
|
|
|
|
} else if (postElement) {
|
|
|
|
this.posting = true;
|
|
|
|
this.posting = true;
|
|
|
|
this.feedService.createPost(postElement.value, this.file).subscribe((result) => {
|
|
|
|
this.feedService.createPost(postElement.value, this.file).subscribe((result) => {
|
|
|
|
postElement.value = '';
|
|
|
|
|
|
|
|
}, (error: IErrorResponse) => {
|
|
|
|
}, (error: IErrorResponse) => {
|
|
|
|
console.log(error);
|
|
|
|
console.log(error);
|
|
|
|
this.posting = false;
|
|
|
|
this.posting = false;
|
|
|
|