From 606c74dd22b6b4049fd11c85807ba74a59c25e6b Mon Sep 17 00:00:00 2001 From: Davut Beyazit <davut.beyazit@mni.thm.de> Date: Sun, 27 Jun 2021 18:17:44 +0200 Subject: [PATCH] Revert changes in room-edit --- .../_dialogs/room-edit/room-edit.component.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/components/creator/_dialogs/room-edit/room-edit.component.html b/src/app/components/creator/_dialogs/room-edit/room-edit.component.html index 479407610..9ee31f0d5 100644 --- a/src/app/components/creator/_dialogs/room-edit/room-edit.component.html +++ b/src/app/components/creator/_dialogs/room-edit/room-edit.component.html @@ -58,10 +58,16 @@ <div fxLayoutAlign="center center"> <mat-slide-toggle [(ngModel)]= "check">{{ 'room-page.block' | translate }}</mat-slide-toggle> </div> - <div fxLayoutAlign="center center"> - <mat-slide-toggle (change)="showMessage('words-will-be-overwritten')" [(ngModel)]= "profanityCheck"> + <div fxLayoutAlign="center center" fxLayout="column"> + <mat-slide-toggle (change)="showMessage('words-will-be-overwritten', $event.checked)" [(ngModel)]= "profanityCheck"> {{ 'room-page.profanity-filter' | translate }} </mat-slide-toggle> + <mat-slide-toggle *ngIf="profanityCheck" (change)="showMessage('only-specific-language-will-be-filtered', $event.checked)" [(ngModel)]= "censorLanguageSpecificCheck"> + {{ 'room-page.language-specific-filter' | translate }} + </mat-slide-toggle> + <mat-slide-toggle *ngIf="profanityCheck" (change)="showMessage('partial-words-will-be-filtered', $event.checked)" [(ngModel)]= "censorPartialWordsCheck"> + {{ 'room-page.partial-words-filter' | translate }} + </mat-slide-toggle> </div> <div fxLayoutAlign="center center"> <!-- <input type="checkbox" id= "myCheck" [(ngModel)]= "check" > --> -- GitLab