@layout PageLayout @inject INoteService NoteService @implements IDisposable @page "/notes" @if (!NoteService.IsLoaded()) { } else { Notes
Section:
@foreach (var note in NoteService.NoteModels) { if (note.IsHidden) { continue; } if (selectedSection != "All" && note.Section != selectedSection) { continue; } @if (note.IsPreAlpha) { Pre Alpha This note refers to content that is in pre-alpha. It won't be accurate in future updates to IGP. }
@note.Section
Last Updated on @note.LastUpdated
@note.Name
@((MarkupString)note.Description)
}
} @code { string selectedSection = "All"; protected override void OnInitialized() { NoteService.Subscribe(StateHasChanged); NoteService.Load(); } public void Dispose() { NoteService.Unsubscribe(StateHasChanged); } void OnSectionChanged(ChangeEventArgs e) { selectedSection = e.Value.ToString(); StateHasChanged(); } }