From 5b7bd5140c780b1ea6cee61a0ce643a062d85b20 Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Fri, 3 Mar 2023 17:40:24 -0600 Subject: [PATCH] Include AM/PM in datetime fields --- LANCommander/Components/ArchiveBrowser.razor | 2 +- LANCommander/Components/ArchiveUploader.razor | 2 +- LANCommander/Components/KeysEditor.razor | 2 +- LANCommander/Components/ScriptEditor.razor | 2 +- LANCommander/Pages/Games/Index.razor | 61 +++++++++++-------- 5 files changed, 38 insertions(+), 31 deletions(-) diff --git a/LANCommander/Components/ArchiveBrowser.razor b/LANCommander/Components/ArchiveBrowser.razor index e594ccb..cc9db23 100644 --- a/LANCommander/Components/ArchiveBrowser.razor +++ b/LANCommander/Components/ArchiveBrowser.razor @@ -40,7 +40,7 @@ @ByteSize.FromBytes(context.Length) - + diff --git a/LANCommander/Components/ArchiveUploader.razor b/LANCommander/Components/ArchiveUploader.razor index 1f1090c..6c6c6bd 100644 --- a/LANCommander/Components/ArchiveUploader.razor +++ b/LANCommander/Components/ArchiveUploader.razor @@ -15,7 +15,7 @@ @context.CreatedBy?.UserName - + diff --git a/LANCommander/Components/KeysEditor.razor b/LANCommander/Components/KeysEditor.razor index 28ae41a..22aec49 100644 --- a/LANCommander/Components/KeysEditor.razor +++ b/LANCommander/Components/KeysEditor.razor @@ -31,7 +31,7 @@ break; } - + diff --git a/LANCommander/Components/ScriptEditor.razor b/LANCommander/Components/ScriptEditor.razor index 6995474..9597028 100644 --- a/LANCommander/Components/ScriptEditor.razor +++ b/LANCommander/Components/ScriptEditor.razor @@ -57,7 +57,7 @@ @context.CreatedBy?.UserName - + diff --git a/LANCommander/Pages/Games/Index.razor b/LANCommander/Pages/Games/Index.razor index 1aa328f..c3b9880 100644 --- a/LANCommander/Pages/Games/Index.razor +++ b/LANCommander/Pages/Games/Index.razor @@ -3,33 +3,35 @@ @inject GameService GameService @inject NavigationManager NavigationManager - - - - - - - - - - - - @context.CreatedBy?.UserName - - - - @context.UpdatedBy?.UserName - - - - -
- -
+ + + + + + + + + + + + + + + + @context.CreatedBy?.UserName + + + + @context.UpdatedBy?.UserName + + + + + + + + +
@code { IEnumerable Games { get; set; } = new List(); @@ -53,6 +55,11 @@ return $"/api/Games/{game.Id}/Icon.png"; } + private void Add() + { + NavigationManager.NavigateTo("/Games/Add"); + } + private void Edit(Game game) { NavigationManager.NavigateTo($"/Games/{game.Id}/Edit");