Skip to content

Commit

Permalink
chore: add missing classnames to modals
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca committed Oct 14, 2024
1 parent 6251aa3 commit e86adef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/common/components/BanIPModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class BanIPModal extends Modal {
}

className() {
return 'Modal--medium';
return 'BanIPModal Modal--medium';
}

title() {
Expand Down
4 changes: 4 additions & 0 deletions js/src/common/components/UnbanIPModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit e86adef

Please sign in to comment.