WIP: ten-recommended-uses #24

Draft
Kocoder wants to merge 4 commits from ten-recommended-uses into main
Showing only changes of commit fa3b3eb00e - Show all commits

View File

@@ -1,6 +1,23 @@
<h3>@user.DisplayName</h3>
@inject FileService fileService
<div>
<img src=@profilePictureUrl />
<h4>@user.DisplayName</h4>
<p>@user.Settings["Jahrgang"] - @user.Settings["Fachrichtung"]</p>
</div>
@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;
}
}
}