[frontend/pages] Fix button text in mute and unmute actions

This commit is contained in:
pancakes 2025-02-23 17:13:11 +10:00 committed by Laura Hausmann
parent 030d3bbbae
commit 2dee0cb91a
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -287,7 +287,7 @@
GlobalComponentSvc.ConfirmDialog?.Confirm(new EventCallback<bool>(this, RemoveFromFollowersAction), Loc["Remove {0} from followers?", UserResponse.DisplayName ?? UserResponse.Username], buttonText: Loc["Remove follower"]); GlobalComponentSvc.ConfirmDialog?.Confirm(new EventCallback<bool>(this, RemoveFromFollowersAction), Loc["Remove {0} from followers?", UserResponse.DisplayName ?? UserResponse.Username], buttonText: Loc["Remove follower"]);
private void Mute() => private void Mute() =>
GlobalComponentSvc.ConfirmDialog?.Confirm(new EventCallback<bool>(this, MuteCallback), Loc["Mute {0}?", UserResponse.DisplayName ?? UserResponse.Username], buttonText: Loc["Block"]); GlobalComponentSvc.ConfirmDialog?.Confirm(new EventCallback<bool>(this, MuteCallback), Loc["Mute {0}?", UserResponse.DisplayName ?? UserResponse.Username], buttonText: Loc["Mute"]);
private async Task MuteCallback(bool confirm) private async Task MuteCallback(bool confirm)
{ {
@ -331,7 +331,7 @@
} }
private void Unmute() => private void Unmute() =>
GlobalComponentSvc.ConfirmDialog?.Confirm(new EventCallback<bool>(this, UnmuteCallback), Loc["Unmute {0}?", UserResponse.DisplayName ?? UserResponse.Username], buttonText: Loc["Unblock"]); GlobalComponentSvc.ConfirmDialog?.Confirm(new EventCallback<bool>(this, UnmuteCallback), Loc["Unmute {0}?", UserResponse.DisplayName ?? UserResponse.Username], buttonText: Loc["Unmute"]);
private async Task UnmuteCallback(bool confirm) private async Task UnmuteCallback(bool confirm)
{ {