diff --git a/MrBigHead.Web/MrBigHead.Web.csproj b/MrBigHead.Web/MrBigHead.Web.csproj index 3452bc8..1892b5a 100644 --- a/MrBigHead.Web/MrBigHead.Web.csproj +++ b/MrBigHead.Web/MrBigHead.Web.csproj @@ -1,16 +1,18 @@  - net7.0 + net8.0 d7ece554-3987-4f6c-8100-f5b918a12cb1 + false - - - - - + + + + + + diff --git a/MrBigHead.Web/Pages/Quips.razor b/MrBigHead.Web/Pages/Quips.razor index a20eb4d..0e927c0 100644 --- a/MrBigHead.Web/Pages/Quips.razor +++ b/MrBigHead.Web/Pages/Quips.razor @@ -1,4 +1,5 @@ @page "/quips" +@using Microsoft.AspNetCore.Components.QuickGrid @inject HttpClient Http

Phrases

@@ -11,37 +12,29 @@ } else { - - - - - - - - - - @foreach (var quip in sayings) - { - - - - - - } - -
MoodPhraseActions
@quip.Mood@quip.Phrase - - - -
+ + + + @if (isAdmin) + { + + + + + } + + + } @code { - private Sayings[] sayings; + private IEnumerable sayings; + PaginationState pagination = new PaginationState { ItemsPerPage = 20 }; + bool isAdmin { get; set; } = true; protected override async Task OnInitializedAsync() { - sayings = await Http.GetFromJsonAsync("https://bigheadfuncs.azurewebsites.net/api/getallphrases"); + sayings = await Http.GetFromJsonAsync>("https://bigheadfuncs.azurewebsites.net/api/getallphrases"); } public class Sayings