mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-08 09:34:16 +00:00
Fixing modlog filtering to allow admins and mods to filter by mod. (#2629)
- Fixes #2590 Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
This commit is contained in:
parent
37f4944dc2
commit
81dc9a2511
|
@ -907,8 +907,9 @@ export class Modlog extends Component<ModlogRouteProps, ModlogState> {
|
||||||
options={userSearchOptions}
|
options={userSearchOptions}
|
||||||
loading={loadingUserSearch}
|
loading={loadingUserSearch}
|
||||||
/>
|
/>
|
||||||
{!this.isoData.site_res.site_view.local_site
|
{(this.amAdminOrMod ||
|
||||||
.hide_modlog_mod_names && (
|
!this.isoData.site_res.site_view.local_site
|
||||||
|
.hide_modlog_mod_names) && (
|
||||||
<Filter
|
<Filter
|
||||||
filterType="mod"
|
filterType="mod"
|
||||||
onChange={this.handleModChange}
|
onChange={this.handleModChange}
|
||||||
|
|
Loading…
Reference in a new issue