Revert "[frontend/components] Fix visibility of renote menu"
This reverts commit 0b26ed4cca6a5a57c1088b7e810bdb528f9b8f11.
This commit is contained in:
parent
41b5d91b8f
commit
bcfdf140cf
1 changed files with 15 additions and 15 deletions
|
@ -34,6 +34,21 @@
|
|||
@if (RenotePossible)
|
||||
{
|
||||
<Icon Name="Icons.Repeat" Size="1.3em"/>
|
||||
<Menu @ref="RenoteMenu">
|
||||
@if (Note.Visibility == NoteVisibility.Public)
|
||||
{
|
||||
<MenuElement Icon="Icons.Repeat" OnSelect="() => Renote(NoteVisibility.Public)">
|
||||
<Text>@Loc["Renote"]</Text>
|
||||
</MenuElement>
|
||||
}
|
||||
<MenuElement Icon="Icons.House" OnSelect="() => Renote(NoteVisibility.Home)">
|
||||
<Text>@Loc["Renote (Unlisted)"]</Text>
|
||||
</MenuElement>
|
||||
<MenuElement Icon="Icons.Lock" OnSelect="() => Renote(NoteVisibility.Followers)">
|
||||
<Text>@Loc["Renote (Followers)"]</Text>
|
||||
</MenuElement>
|
||||
<ClosingBackdrop OnClose="RenoteMenu.Close"></ClosingBackdrop>
|
||||
</Menu>
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -44,21 +59,6 @@
|
|||
<span class="renote-count">@Renotes</span>
|
||||
}
|
||||
</button>
|
||||
<Menu @ref="RenoteMenu">
|
||||
@if (Note.Visibility == NoteVisibility.Public)
|
||||
{
|
||||
<MenuElement Icon="Icons.Repeat" OnSelect="() => Renote(NoteVisibility.Public)">
|
||||
<Text>@Loc["Renote"]</Text>
|
||||
</MenuElement>
|
||||
}
|
||||
<MenuElement Icon="Icons.House" OnSelect="() => Renote(NoteVisibility.Home)">
|
||||
<Text>@Loc["Renote (Unlisted)"]</Text>
|
||||
</MenuElement>
|
||||
<MenuElement Icon="Icons.Lock" OnSelect="() => Renote(NoteVisibility.Followers)">
|
||||
<Text>@Loc["Renote (Followers)"]</Text>
|
||||
</MenuElement>
|
||||
<ClosingBackdrop OnClose="RenoteMenu.Close"></ClosingBackdrop>
|
||||
</Menu>
|
||||
<button @onclick="Like" @onclick:stopPropagation="true" class="btn" aria-label="like">
|
||||
@if (IsLiked)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue