From bf98c699daad9162b60b93d66623d5871c7040c8 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 24 Nov 2022 16:34:56 +0100 Subject: [PATCH] MOBILE-4081 blog: Don't show my entries toggle when viewing entry --- src/addons/blog/pages/entries/entries.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/addons/blog/pages/entries/entries.ts b/src/addons/blog/pages/entries/entries.ts index 100eec06b..8d5baa0e4 100644 --- a/src/addons/blog/pages/entries/entries.ts +++ b/src/addons/blog/pages/entries/entries.ts @@ -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;