From 646ccb0f18d3790d015f84df06712df28a59edaa Mon Sep 17 00:00:00 2001 From: troogs Date: Mon, 20 Apr 2026 21:20:52 +0200 Subject: [PATCH] Add identity verification features: display image upload status and update UI elements --- .../Controls/ProspectContainer.razor | 22 +++++++++++-------- .../Data/Service/ProspectService.cs | 1 + .../Pages/UploadVerification.razor | 18 +++++++++++---- .../Pages/UploadVerification.razor.cs | 1 + 4 files changed, 29 insertions(+), 13 deletions(-) diff --git a/FoodsharingSiegen.Server/Controls/ProspectContainer.razor b/FoodsharingSiegen.Server/Controls/ProspectContainer.razor index 10ffe57..2a7ee40 100644 --- a/FoodsharingSiegen.Server/Controls/ProspectContainer.razor +++ b/FoodsharingSiegen.Server/Controls/ProspectContainer.razor @@ -150,6 +150,11 @@
+ @if(Prospect?.Images?.Count > 0) + {
+ Perso-Check möglich
+ } +
@if (Prospect?.RecordState != RecordState.Archived) { @@ -209,15 +222,6 @@ > } - -
diff --git a/FoodsharingSiegen.Server/Data/Service/ProspectService.cs b/FoodsharingSiegen.Server/Data/Service/ProspectService.cs index 596e1e9..055f345 100644 --- a/FoodsharingSiegen.Server/Data/Service/ProspectService.cs +++ b/FoodsharingSiegen.Server/Data/Service/ProspectService.cs @@ -243,6 +243,7 @@ namespace FoodsharingSiegen.Server.Data.Service { var prospect = await Context.Prospects! .Include(x => x.Interactions) + .Include(x => x.Images) .AsNoTracking() .FirstOrDefaultAsync(x => x.VerificationToken == token); diff --git a/FoodsharingSiegen.Server/Pages/UploadVerification.razor b/FoodsharingSiegen.Server/Pages/UploadVerification.razor index 3dcaddc..823016d 100644 --- a/FoodsharingSiegen.Server/Pages/UploadVerification.razor +++ b/FoodsharingSiegen.Server/Pages/UploadVerification.razor @@ -3,6 +3,8 @@ @using System.IO @layout LoginLayout +Identitätsprüfung - @AppSettings.Value.Terms.Title +