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] Allow opening notes in profile view

authored by

Lilian and committed by
Laura Hausmann
dc12aa09 9d3d8bf6

+7 -1
+7 -1
Iceshrimp.Frontend/Pages/ProfileView.razor
··· 8 8 @using Microsoft.AspNetCore.Authorization 9 9 @attribute [Authorize] 10 10 @inject ApiService Api 11 + @inject NavigationManager Nav; 11 12 12 13 @if (_init) 13 14 { ··· 50 51 <div class="notes"> 51 52 @foreach (var note in UserNotes) 52 53 { 53 - <div class="note-container"> 54 + <div class="note-container" @onclick="() => OpenNote(note.RenoteId ?? note.Id)"> 54 55 <Note NoteResponse="note"/> 55 56 </div> 56 57 } ··· 140 141 _loading = false; 141 142 _error = true; 142 143 } 144 + } 145 + 146 + private void OpenNote(string id) 147 + { 148 + Nav.NavigateTo($"/notes/{id}"); 143 149 } 144 150 145 151 protected override async Task OnInitializedAsync()