From ee967cd04637e5bf29e68156ad75247a1b99bd44 Mon Sep 17 00:00:00 2001 From: troogs Date: Thu, 16 Apr 2026 16:59:04 +0200 Subject: [PATCH] Enhance Prospect display in ProspectContainer.razor to show warning for missing name and format FsId --- .../Controls/ProspectContainer.razor | 19 +++++++++++++++++-- .../wwwroot/buildinfo.txt | 2 +- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/FoodsharingSiegen.Server/Controls/ProspectContainer.razor b/FoodsharingSiegen.Server/Controls/ProspectContainer.razor index 2edda8b..9d1a366 100644 --- a/FoodsharingSiegen.Server/Controls/ProspectContainer.razor +++ b/FoodsharingSiegen.Server/Controls/ProspectContainer.razor @@ -12,8 +12,23 @@
- @Prospect?.Name - @Prospect?.FsId + @if(string.IsNullOrWhiteSpace(Prospect?.Name)) + { + + + + »Name fehlt« + } + else + { + @Prospect?.Name + } + + @if (Prospect?.FsId != null && Prospect.FsId != 0) + { + @Prospect?.FsId + } +
@if (CurrentUser.IsInGroup(UserGroup.WelcomeTeam, UserGroup.Ambassador)) diff --git a/FoodsharingSiegen.Server/wwwroot/buildinfo.txt b/FoodsharingSiegen.Server/wwwroot/buildinfo.txt index 238dd7b..caade37 100644 --- a/FoodsharingSiegen.Server/wwwroot/buildinfo.txt +++ b/FoodsharingSiegen.Server/wwwroot/buildinfo.txt @@ -1 +1 @@ -20260410 +20260416