Prevent default event handling on block anon option

Co-authored-by: Andreas Nedbal <github-bf215181b5140522137b3d4f6b73544a@desu.email>
This commit is contained in:
Karina Kwiatek 2022-08-20 19:37:51 +02:00 committed by GitHub
parent 4814ccdaa5
commit 48f70c9e47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,8 @@ import { showErrorNotification, showNotification } from "utilities/notifications
import I18n from "retrospring/i18n";
export function blockAnonEventHandler(event: Event): void {
event.preventDefault();
swal({
title: I18n.translate('frontend.mod_mute.confirm.title'),
text: I18n.translate('frontend.mod_mute.confirm.text'),