diff --git a/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.html b/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.html index 084f7140b60d40c6363fd22090fdb72b33615564..948bb657cbc0c5695595593443538afbaf9f1fc6 100644 --- a/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.html +++ b/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.html @@ -32,7 +32,7 @@ {{'topic-cloud-dialog.consider-votes' | translate}} </mat-slide-toggle> <div *ngIf="isCreatorOrMod"> - <mat-slide-toggle (change)="refreshAllLists()" [(ngModel)]="profanityFilter"> + <mat-slide-toggle (change)="changeProfanityFilter()" [(ngModel)]="profanityFilter"> {{'topic-cloud-dialog.profanity' | translate}} </mat-slide-toggle> <mat-slide-toggle [(ngModel)]="blacklistIsActive"> diff --git a/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.ts b/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.ts index 1d77bd8bb0dc1fb5e54c5aaf0bed60256cfa6727..4e3cdec6ada7613d89836ceb043a179cfbe4fdac 100644 --- a/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.ts +++ b/src/app/components/shared/_dialogs/topic-cloud-administration/topic-cloud-administration.component.ts @@ -364,8 +364,13 @@ export class TopicCloudAdministrationComponent implements OnInit, OnDestroy { this.topicCloudAdminService.removeWordFromBlacklist(word); } - refreshAllLists() { - this.searchKeyword(); + changeProfanityFilter() { + if (this.profanityFilter){ + this.translateService.get('topic-cloud-dialog.words-will-be-overwritten').subscribe(msg => { + this.notificationService.show(msg); + }); + this.searchKeyword(); + } } selectAllDE() { diff --git a/src/assets/i18n/participant/de.json b/src/assets/i18n/participant/de.json index a3efc8b1d106470ec9fbdecec193c75e40bf3de8..40a30f633fce1616a92a373a5b2e2fd091c258ec 100644 --- a/src/assets/i18n/participant/de.json +++ b/src/assets/i18n/participant/de.json @@ -292,7 +292,8 @@ "german": "Deutsch", "select-all": "Alle auswählen", "keyword-counter": "Anzahl der Themen", - "sort": "Sortieren" + "sort": "Sortieren", + "words-will-be-overwritten": "unanständige Wörter werden mit '***' überschrieben" }, "topic-cloud-confirm-dialog": { "cancel": "Abbrechen", diff --git a/src/assets/i18n/participant/en.json b/src/assets/i18n/participant/en.json index c0bea49f45398eec81c16ddb51f6233a6ff8d592..186125034f46ced3e77df97be8a44c96838671fc 100644 --- a/src/assets/i18n/participant/en.json +++ b/src/assets/i18n/participant/en.json @@ -298,7 +298,8 @@ "german": "German", "select-all": "Select all", "keyword-counter": "Topic count", - "sort": "Sort" + "sort": "Sort", + "words-will-be-overwritten": "profane words will be overwritten with '***'" }, "topic-cloud-confirm-dialog":{ "cancel": "Cancel",