MOBILE-4081 blog: Don't show my entries toggle when viewing entry

main
Dani Palou 2022-11-24 16:34:56 +01:00
parent b1bd54067c
commit bf98c699da
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,6 @@ export class AddonBlogEntriesPage implements OnInit {
if (userId) {
this.filter.userid = userId;
}
this.showMyEntriesToggle = !userId;
if (courseId) {
this.filter.courseid = courseId;
@ -105,6 +104,8 @@ export class AddonBlogEntriesPage implements OnInit {
this.filter.tagid = tagId;
}
this.showMyEntriesToggle = !userId && !this.filter.entryid;
// Calculate the context level.
if (userId && !courseId && !cmId) {
this.contextLevel = ContextLevel.USER;