| |
@@ -153,6 +153,11 @@
|
| |
*/
|
| |
private blogposts: Post[];
|
| |
|
| |
+ /**
|
| |
+ * Controls whether or not the loader is shown
|
| |
+ */
|
| |
+ private loadingResults;
|
| |
+
|
| |
constructor(private browser: Browser, private communityblog: CommunityBlogService) {
|
| |
this.blogposts = [];
|
| |
}
|
| |
@@ -161,9 +166,11 @@
|
| |
* Fetch Blog Posts from the Fedora Community Blog
|
| |
*/
|
| |
private updateBlogPosts(): void {
|
| |
+ this.loadingResults = true;
|
| |
this.communityblog.getBlogPosts('454')
|
| |
.subscribe(blogposts => {
|
| |
this.blogposts = blogposts;
|
| |
+ this.loadingResults = false;
|
| |
});
|
| |
}
|
| |
|
| |
@@ -190,6 +197,11 @@
|
| |
})
|
| |
export class FedoraPodcast {
|
| |
/**
|
| |
+ * Controls whether or not the loader is shown
|
| |
+ */
|
| |
+ private loadingResults;
|
| |
+
|
| |
+ /**
|
| |
* List of podcasts from Fedora Podcast
|
| |
*/
|
| |
private podcasts: Podcast[];
|
| |
@@ -200,8 +212,10 @@
|
| |
* Fetch podcasts from the Fedora Podcast simplecast channel
|
| |
*/
|
| |
private updatePodcasts(): void {
|
| |
+ this.loadingResults = true;
|
| |
this.fedorapodcast.getPodcasts().subscribe(podcasts => {
|
| |
- this.podcasts = podcasts
|
| |
+ this.podcasts = podcasts;
|
| |
+ this.loadingResults = false;
|
| |
});
|
| |
}
|
| |
/**Open player for the podcast
|
| |
I can't find the CSS of loader. Did you forget to include it?