From fa3b3eb00e897d663ebbbf9015e7579c1f1b482f Mon Sep 17 00:00:00 2001 From: Florian Edlmayer Date: Wed, 14 Jan 2026 13:12:18 +0100 Subject: [PATCH] UserComponent 10 Benutzer anzeigen design fehlt noch --- Client/Components/UserComponent.razor | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Client/Components/UserComponent.razor b/Client/Components/UserComponent.razor index 7386d11..9c236cf 100644 --- a/Client/Components/UserComponent.razor +++ b/Client/Components/UserComponent.razor @@ -1,6 +1,23 @@ -

@user.DisplayName

+@inject FileService fileService + +
+ +

@user.DisplayName

+

@user.Settings["Jahrgang"] - @user.Settings["Fachrichtung"]

+
@code { [Parameter] public User user { get; set; } + + private string profilePictureUrl = ""; + + protected override async Task OnInitializedAsync() + { + if(user.PhotoFileId != null) + { + File f = await fileService.GetFileAsync(user.PhotoFileId); + profilePictureUrl = f.Url; + } + } } \ No newline at end of file