From fc7b5f291e41da448d25184ed9eaa33dd1529182 Mon Sep 17 00:00:00 2001 From: mohammad <mohammad.alayoub@mni.thm.de> Date: Tue, 29 Jun 2021 13:40:51 +0200 Subject: [PATCH] Add button to hide/show the comment profanity words only locally --- .../components/shared/comment/comment.component.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/app/components/shared/comment/comment.component.html b/src/app/components/shared/comment/comment.component.html index 9cb9d57eb..22c10e42f 100644 --- a/src/app/components/shared/comment/comment.component.html +++ b/src/app/components/shared/comment/comment.component.html @@ -39,6 +39,16 @@ </button> <span class="fill-remaining-space"></span> <ng-container> + <!-- [(ngModel)]="profanityFilter" --> + <button mat-icon-button + *ngIf="(isCreator || isModerator || comment.answer) && !inAnswerView" + (click)="changeProfanityShowForModerators(comment)"> + <mat-icon class="not-marked" + [matTooltip]="comment.answer ? ('comment-page.has-answer' | translate) : + ('comment-page.fullscreen' | translate)"> + {{filterProfanityForModerators?'visibility_off':'visibility'}} + </mat-icon> + </button> <button mat-icon-button *ngIf="(isCreator || isModerator || comment.answer) && !inAnswerView" (click)="answerComment()" -- GitLab