a fork of iceshrimp.net but a tweaked frontend to my personal liking. waow
fediverse social-media social iceshrimp fedi
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[frontend/components] Add bookmark actions to note menu

authored by

pancakes and committed by
Laura Hausmann
b8d6f6f3 e2b43fd2

+8
+8
Iceshrimp.Frontend/Components/Note/NoteFooter.razor
··· 99 99 <Text>@Loc["Refetch"]</Text> 100 100 </MenuElement> 101 101 } 102 + <MenuElement Icon="Icons.BookmarkSimple" OnSelect="Bookmark"> 103 + <Text>@(Note.Bookmarked ? Loc["Remove bookmark"] : Loc["Add bookmark"])</Text> 104 + </MenuElement> 102 105 <MenuElement Icon="Icons.SpeakerX" OnSelect="Mute"> 103 106 <Text>@Loc["Mute thread"]</Text> 104 107 </MenuElement> ··· 167 170 private void CopyLinkRemote() => Js.InvokeVoidAsync("navigator.clipboard.writeText", Note.Url); 168 171 169 172 private void CopyContents() => Js.InvokeVoidAsync("navigator.clipboard.writeText", Note.Text); 173 + 174 + private void Bookmark() 175 + { 176 + _ = NoteActions.ToggleBookmarkAsync(Note); 177 + } 170 178 171 179 private void Like() 172 180 {