MOBILE-2915 blog: Always display show my entries toggle

main
Dani Palou 2019-03-29 11:43:25 +01:00
parent b16eb29ac0
commit ceff8858f4
1 changed files with 1 additions and 3 deletions

View File

@ -135,9 +135,7 @@ export class AddonBlogEntriesComponent implements OnInit {
this.canLoadMore = result.totalentries > this.entries.length; this.canLoadMore = result.totalentries > this.entries.length;
this.pageLoaded++; this.pageLoaded++;
this.showMyIssuesToggle = !this.userId && (this.showMyIssuesToggle || this.entries.some((entry) => { this.showMyIssuesToggle = !this.userId;
return entry.userid == this.currentUserId;
}));
return Promise.all(promises); return Promise.all(promises);
}).catch((message) => { }).catch((message) => {