From 562b51d508a04fdf4866ec7f4c27db78235e5fdd Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Thu, 11 Jun 2026 00:49:00 +1000 Subject: Updated pages and components to use new Button component --- Pages/ViewMedia.razor | 109 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 72 insertions(+), 37 deletions(-) (limited to 'Pages/ViewMedia.razor') diff --git a/Pages/ViewMedia.razor b/Pages/ViewMedia.razor index d44b430..3659b42 100644 --- a/Pages/ViewMedia.razor +++ b/Pages/ViewMedia.razor @@ -122,47 +122,77 @@
- - + - + + @if(infoEditMode) { -@* - - + -*@ + } else { - + } @* @if(media.IsIngest) { - + } else { *@ - + @* } *@
@@ -176,8 +206,8 @@ - - + + @@ -190,7 +220,12 @@ } *@ - + @@ -283,16 +318,16 @@ } } - // private void ApplyInfoEdit(bool apply) { - // if(apply) { - // mediaService.SetDescription(media, shortDescription, longDescription); - // LoadMedia(); - // } + private void ApplyInfoEdit(bool apply) { + if(apply) { + //mediaService.SetDescription(media, shortDescription, longDescription); + //LoadMedia(); + } - // infoEditMode = false; - // } + infoEditMode = false; + } - private async void DeleteMedia() { + private async Task DeleteMedia() { // mediaService.Delete(media); // await jsRuntime.InvokeVoidAsync("history.back"); } -- cgit v1.3