MOBILE-3230 forum: Update parentheses formatting

main
Noel De Martin 2019-11-27 12:47:18 +01:00
parent 256c883f57
commit 9ebf923964
1 changed files with 5 additions and 11 deletions

View File

@ -90,17 +90,11 @@ export class AddonModForumPostComponent implements OnInit, OnDestroy {
this.uniqueId = this.post.id ? 'reply' + this.post.id : 'edit' + this.post.parent; this.uniqueId = this.post.id ? 'reply' + this.post.id : 'edit' + this.post.parent;
const reTranslated = this.translate.instant('addon.mod_forum.re'); const reTranslated = this.translate.instant('addon.mod_forum.re');
this.displaySubject = !this.parentSubject || ( this.displaySubject = !this.parentSubject ||
this.post.subject != this.parentSubject && (this.post.subject != this.parentSubject && this.post.subject != `Re: ${this.parentSubject}` &&
this.post.subject != `Re: ${this.parentSubject}` && this.post.subject != `${reTranslated} ${this.parentSubject}`);
this.post.subject != `${reTranslated} ${this.parentSubject}` this.defaultReplySubject = (this.post.subject.startsWith('Re: ') || this.post.subject.startsWith(reTranslated))
); ? this.post.subject : `${reTranslated} ${this.post.subject}`;
this.defaultReplySubject = (
this.post.subject.startsWith('Re: ') ||
this.post.subject.startsWith(reTranslated)
)
? this.post.subject
: `${reTranslated} ${this.post.subject}`;
this.optionsMenuEnabled = !this.post.id || (this.forumProvider.isGetDiscussionPostAvailable() && this.optionsMenuEnabled = !this.post.id || (this.forumProvider.isGetDiscussionPostAvailable() &&
(this.forumProvider.isDeletePostAvailable() || this.forumProvider.isUpdatePostAvailable())); (this.forumProvider.isDeletePostAvailable() || this.forumProvider.isUpdatePostAvailable()));