MOBILE-2915 blog: Always display show my entries toggle
parent
b16eb29ac0
commit
ceff8858f4
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue