From e4212c9436235db179e61f6a2eb59736e5ccac49 Mon Sep 17 00:00:00 2001 From: Gordon Pedersen Date: Thu, 20 Jun 2024 14:47:17 +1000 Subject: [PATCH] Show a warning on pics with no description --- Components/PicCard.razor | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Components/PicCard.razor b/Components/PicCard.razor index 5ff09f7..5bf628c 100644 --- a/Components/PicCard.razor +++ b/Components/PicCard.razor @@ -12,7 +12,15 @@ @Pic.RelativeTime -

@((MarkupString)Pic.DescriptionHtml)

+ @if(!string.IsNullOrWhiteSpace(Pic.Description)){ +

@((MarkupString)Pic.DescriptionHtml)

+ } + else { +
+ + This picture needs a description in order to be shared. +
+ }