From c7c6d6ec9eb45ebbb63c89154e334597b05d283c Mon Sep 17 00:00:00 2001 From: Davide Iadeluca <146922689+DavideIadeluca@users.noreply.github.com> Date: Mon, 14 Oct 2024 10:19:07 +0200 Subject: [PATCH] chore: add missing classnames to modals (#36) --- js/src/common/components/BanIPModal.js | 2 +- js/src/common/components/UnbanIPModal.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/js/src/common/components/BanIPModal.js b/js/src/common/components/BanIPModal.js index d853613..0f6a3d1 100644 --- a/js/src/common/components/BanIPModal.js +++ b/js/src/common/components/BanIPModal.js @@ -33,7 +33,7 @@ export default class BanIPModal extends Modal { } className() { - return 'Modal--medium'; + return 'BanIPModal Modal--medium'; } title() { diff --git a/js/src/common/components/UnbanIPModal.js b/js/src/common/components/UnbanIPModal.js index d01e077..448e1d9 100644 --- a/js/src/common/components/UnbanIPModal.js +++ b/js/src/common/components/UnbanIPModal.js @@ -11,6 +11,10 @@ export default class UnbanIPModal extends BanIPModal { return app.translator.trans('fof-ban-ips.lib.modal.unban_title'); } + className() { + return 'UnbanIPModal Modal--medium'; + } + content() { const otherUsers = this.otherUsers[this.banOption()]; const usernames = otherUsers && otherUsers.map((u) => (u && u.displayName()) || app.translator.trans('core.lib.username.deleted_text'));