Skip to content

Commit

Permalink
Merge pull request #1010 from calledude/fix-infractions
Browse files Browse the repository at this point in the history
Set initial value for table filter if provided via query params
  • Loading branch information
patrickklaeren authored Mar 26, 2024
2 parents e5c04c6 + e8e4f9e commit 9c850cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Modix.Web/Components/Infractions.razor
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@
var auth = await AuthState;
_canRescind = auth.User.HasClaim(ClaimTypes.Role, nameof(AuthorizationClaim.ModerationRescind));
_canDeleteInfractions = auth.User.HasClaim(ClaimTypes.Role, nameof(AuthorizationClaim.ModerationDeleteInfraction));

_tableFilter.Subject = Subject ?? Id;
}

private async Task ShowStateChanged(bool showState)
Expand Down

0 comments on commit 9c850cf

Please sign in to comment.