[frontend/pages] Rearrange profile menu items, apply danger style, and change temp mute icon

This commit is contained in:
pancakes 2025-03-21 13:52:47 +10:00
parent 316c25e036
commit e1e54029cd
No known key found for this signature in database

View file

@ -102,12 +102,6 @@
@if (Profile != null && !Profile.Relations.HasFlag(Relations.Self))
{
<hr class="rule"/>
@if (Profile != null && Profile.Relations.HasFlag(Relations.FollowedBy))
{
<MenuElement Icon="Icons.LinkBreak" OnSelect="RemoveFromFollowers" Danger>
<Text>@Loc["Remove follower"]</Text>
</MenuElement>
}
@if (Profile != null && Profile.Relations.HasFlag(Relations.Muting))
{
<MenuElement Icon="Icons.Eye" OnSelect="Unmute">
@ -119,19 +113,25 @@
<MenuElement Icon="Icons.EyeSlash" OnSelect="Mute">
<Text>@Loc["Mute"]</Text>
</MenuElement>
<MenuElement Icon="Icons.EyeSlash" OnSelect="TemporaryMute">
<MenuElement Icon="Icons.Timer" OnSelect="TemporaryMute">
<Text>@Loc["Temporary mute"]</Text>
</MenuElement>
}
@if (Profile != null && Profile.Relations.HasFlag(Relations.FollowedBy))
{
<MenuElement Icon="Icons.LinkBreak" OnSelect="RemoveFromFollowers" Danger>
<Text>@Loc["Remove follower"]</Text>
</MenuElement>
}
@if (Profile != null && Profile.Relations.HasFlag(Relations.Blocking))
{
<MenuElement Icon="Icons.Prohibit" OnSelect="Unblock">
<MenuElement Icon="Icons.Prohibit" OnSelect="Unblock" Danger>
<Text>@Loc["Unblock"]</Text>
</MenuElement>
}
else
{
<MenuElement Icon="Icons.Prohibit" OnSelect="Block">
<MenuElement Icon="Icons.Prohibit" OnSelect="Block" Danger>
<Text>@Loc["Block"]</Text>
</MenuElement>
}