From 5b70fca402a13dc805b14567a7706139ef630621 Mon Sep 17 00:00:00 2001 From: Albert Gasset Date: Fri, 10 May 2019 15:27:18 +0200 Subject: [PATCH] MOBILE-2985 forum: Private reply checkbox displayed by default --- .../mod/forum/components/post/addon-mod-forum-post.html | 8 ++++---- src/addon/mod/forum/components/post/post.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/addon/mod/forum/components/post/addon-mod-forum-post.html b/src/addon/mod/forum/components/post/addon-mod-forum-post.html index 8918cadb5..cb8ffc1b3 100644 --- a/src/addon/mod/forum/components/post/addon-mod-forum-post.html +++ b/src/addon/mod/forum/components/post/addon-mod-forum-post.html @@ -51,6 +51,10 @@ {{ 'addon.mod_forum.message' | translate }} + + {{ 'addon.mod_forum.privatereply' | translate }} + + @@ -58,10 +62,6 @@ - - {{ 'addon.mod_forum.privatereply' | translate }} - - diff --git a/src/addon/mod/forum/components/post/post.ts b/src/addon/mod/forum/components/post/post.ts index 92251ae5c..581c7eefe 100644 --- a/src/addon/mod/forum/components/post/post.ts +++ b/src/addon/mod/forum/components/post/post.ts @@ -122,7 +122,7 @@ export class AddonModForumPostComponent implements OnInit, OnDestroy { this.originalData.isprivatereply = this.replyData.isprivatereply; // Show advanced fields if any of them has not the default value. - this.advanced = this.replyData.files.length > 0 || this.originalData.isprivatereply; + this.advanced = this.replyData.files.length > 0; } /**