Dummy Button Notifications

This commit is contained in:
Andre Beging
2022-05-23 15:42:14 +02:00
parent d8662c4876
commit 602799e27c
2 changed files with 29 additions and 5 deletions

View File

@@ -31,6 +31,6 @@
</Fields>
<h3>Sicherheit</h3>
<Button Color="Color.Primary" Class="mb-2">Passwort ändern</Button>
<Button Color="Color.Danger" Class="mb-2">Konto löschen</Button>
<Button Color="Color.Primary" Class="mb-2" Clicked="ChangePassword">Passwort ändern</Button>
<Button Color="Color.Danger" Class="mb-2" Clicked="RemoveAccount">Konto löschen</Button>
</div>

View File

@@ -11,14 +11,14 @@ namespace FoodsharingSiegen.Server.Pages
public partial class Profile
{
#region Dependencies (Injected)
/// <summary>
/// Gets or sets the value of the user service (ab)
/// </summary>
[Inject] public UserService? UserService { get; set; }
#endregion
#endregion
#region Private Properties
/// <summary>
@@ -61,6 +61,30 @@ namespace FoodsharingSiegen.Server.Pages
#endregion
#region Private Method ChangePassword
/// <summary>
/// Changes the password (a. beging, 23.05.2022)
/// </summary>
private async Task ChangePassword()
{
await Notification?.Success("Die Funktion ist noch nicht fertig! :)")!;
}
#endregion
#region Private Method RemoveAccount
/// <summary>
/// Removes the account (a. beging, 23.05.2022)
/// </summary>
private async Task RemoveAccount()
{
await Notification?.Success("Die Funktion ist noch nicht fertig! :)")!;
}
#endregion
#region Private Method SaveProfile
/// <summary>