MOBILE-4081 blog: Don't show my entries toggle when viewing entry
parent
b1bd54067c
commit
bf98c699da
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue