|
|
@ -49,9 +49,6 @@ export class FeedComponent implements OnInit {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.feedService.getPosts('NEW');
|
|
|
|
this.feedService.getPosts('NEW');
|
|
|
|
this.feedService.posts.subscribe(response => {
|
|
|
|
this.feedService.posts.subscribe(response => {
|
|
|
|
if (response.length > 0) {
|
|
|
|
|
|
|
|
// this.loading = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.parentSelectedPostList = response;
|
|
|
|
this.parentSelectedPostList = response;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.feedService.newPostsAvailable.subscribe(response => {
|
|
|
|
this.feedService.newPostsAvailable.subscribe(response => {
|
|
|
@ -104,4 +101,14 @@ export class FeedComponent implements OnInit {
|
|
|
|
getErrorMessage() {
|
|
|
|
getErrorMessage() {
|
|
|
|
return this.errorMessage;
|
|
|
|
return this.errorMessage;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Executed when the text in the input field changes.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private onTextInputChange() {
|
|
|
|
|
|
|
|
if (this.errorOccurred) {
|
|
|
|
|
|
|
|
this.errorOccurred = false;
|
|
|
|
|
|
|
|
this.errorMessage = '';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|