[frontend/pages] Rearrange profile menu items, apply danger style, and change temp mute icon
This commit is contained in:
parent
316c25e036
commit
e1e54029cd
1 changed files with 9 additions and 9 deletions
|
@ -102,12 +102,6 @@
|
||||||
@if (Profile != null && !Profile.Relations.HasFlag(Relations.Self))
|
@if (Profile != null && !Profile.Relations.HasFlag(Relations.Self))
|
||||||
{
|
{
|
||||||
<hr class="rule"/>
|
<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))
|
@if (Profile != null && Profile.Relations.HasFlag(Relations.Muting))
|
||||||
{
|
{
|
||||||
<MenuElement Icon="Icons.Eye" OnSelect="Unmute">
|
<MenuElement Icon="Icons.Eye" OnSelect="Unmute">
|
||||||
|
@ -119,19 +113,25 @@
|
||||||
<MenuElement Icon="Icons.EyeSlash" OnSelect="Mute">
|
<MenuElement Icon="Icons.EyeSlash" OnSelect="Mute">
|
||||||
<Text>@Loc["Mute"]</Text>
|
<Text>@Loc["Mute"]</Text>
|
||||||
</MenuElement>
|
</MenuElement>
|
||||||
<MenuElement Icon="Icons.EyeSlash" OnSelect="TemporaryMute">
|
<MenuElement Icon="Icons.Timer" OnSelect="TemporaryMute">
|
||||||
<Text>@Loc["Temporary mute"]</Text>
|
<Text>@Loc["Temporary mute"]</Text>
|
||||||
</MenuElement>
|
</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))
|
@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>
|
<Text>@Loc["Unblock"]</Text>
|
||||||
</MenuElement>
|
</MenuElement>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<MenuElement Icon="Icons.Prohibit" OnSelect="Block">
|
<MenuElement Icon="Icons.Prohibit" OnSelect="Block" Danger>
|
||||||
<Text>@Loc["Block"]</Text>
|
<Text>@Loc["Block"]</Text>
|
||||||
</MenuElement>
|
</MenuElement>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue