NotificationService, MessageService
This commit is contained in:
@@ -18,7 +18,7 @@ namespace FoodsharingSiegen.Server.Pages
|
||||
[Inject] public UserService? UserService { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Private Properties
|
||||
|
||||
/// <summary>
|
||||
@@ -69,7 +69,15 @@ namespace FoodsharingSiegen.Server.Pages
|
||||
private async Task SaveProfile()
|
||||
{
|
||||
var updateR = await UserService?.Update(User)!;
|
||||
if (updateR.Success) await RefreshState();
|
||||
if (updateR.Success)
|
||||
{
|
||||
await Notification?.Success("Profil gespeichert!")!;
|
||||
await RefreshState();
|
||||
}
|
||||
else
|
||||
{
|
||||
await Notification?.Error(updateR.ErrorMessage)!;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
<link href="_content/Blazorise/blazorise.css" rel="stylesheet" />
|
||||
<link href="_content/Blazorise.Material/blazorise.material.css" rel="stylesheet" />
|
||||
<link href="_content/Blazorise.Icons.Material/blazorise.icons.material.css" rel="stylesheet" />
|
||||
<link href="_content/Blazorise.Snackbar/blazorise.snackbar.css" rel="stylesheet" />
|
||||
|
||||
<component type="typeof(HeadOutlet)" render-mode="ServerPrerendered"/>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user