From: cmp Date: Sat, 12 Aug 2023 09:25:29 +0000 (-0500) Subject: Move banned users to a separate admin tab. (#2057) X-Git-Url: http://these/git/sneer-club-logo.svg?a=commitdiff_plain;h=da4fd7e39e288dd9885466452498a0366aec5b9d;p=lemmy-ui.git Move banned users to a separate admin tab. (#2057) --- diff --git a/src/shared/components/home/admin-settings.tsx b/src/shared/components/home/admin-settings.tsx index d3c998d..4924508 100644 --- a/src/shared/components/home/admin-settings.tsx +++ b/src/shared/components/home/admin-settings.tsx @@ -150,15 +150,26 @@ export class AdminSettings extends Component { loading={this.state.loading} /> -
- {this.admins()} -
- {this.bannedUsers()} -
+
{this.admins()}
), }, + { + key: "banned_users", + label: I18NextService.i18n.t("banned_users"), + getNode: isSelected => ( +
+ {this.bannedUsers()} +
+ ), + }, { key: "rate_limiting", label: "Rate Limiting", @@ -295,7 +306,7 @@ export class AdminSettings extends Component { const bans = this.state.bannedRes.data.banned; return ( <> -

{I18NextService.i18n.t("banned_users")}

+

{I18NextService.i18n.t("banned_users")}

    {bans.map(banned => (