diff --git a/PizzaBot/Components/ArchiveListComponent.razor b/PizzaBot/Components/ArchiveListComponent.razor index bf61b5b..1a426fd 100644 --- a/PizzaBot/Components/ArchiveListComponent.razor +++ b/PizzaBot/Components/ArchiveListComponent.razor @@ -2,58 +2,21 @@ @using Microsoft.AspNetCore.Components.QuickGrid - -

- Show: - - - - - - - - -

- - @if (ShowDate) - { - - } - @if (ShowPizzaTotal) + + @if (ShowOnlyTotalPizza) { - } - @if (ShowPizzaDetailed) - { + } else{ - } - @if (ShowOrderCount) - { - - } - @if (ShowBottles) - { - } - @if (ShowPrice) - { - - } - @if (ShowNotes) - { - - } - @if (ShowEdit) - { - - - - } - - + + + + + @@ -73,16 +36,6 @@ PaginationState Pagination; - bool ShowDate = true; - bool ShowPizzaTotal = true; - bool ShowPizzaDetailed = true; - bool ShowOrderCount = true; - bool ShowBottles = true; - bool ShowPrice = true; - bool ShowEdit = true; - bool ShowNotes = false; - - protected override void OnInitialized() { base.OnInitialized(); @@ -93,13 +46,5 @@ await InvokeAsync(StateHasChanged); }; ArchiveService.OnArchiveChange += Reload; - - if (ShowOnlyTotalPizza) - { - ShowPizzaDetailed = false; - ShowBottles = false; - ShowOrderCount = false; - //ShowEdit = false; - } } } diff --git a/PizzaBot/Components/Pages/AdminPizzaArchive.razor b/PizzaBot/Components/Pages/AdminPizzaArchive.razor index b97c061..8f03470 100644 --- a/PizzaBot/Components/Pages/AdminPizzaArchive.razor +++ b/PizzaBot/Components/Pages/AdminPizzaArchive.razor @@ -22,7 +22,7 @@ } else { - Orders have to be locked to add today to the archive. + Order's have to be locked to add today to the archive. }