User Account delete is now a button
This commit is contained in:
parent
5c868d45c6
commit
ed1a03cb24
1 changed files with 2 additions and 6 deletions
|
@ -72,13 +72,8 @@
|
|||
<br />
|
||||
<button type="submit">Save</button>
|
||||
<ValidationSummary />
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
<a href="Account/Logout" class="loginText" @onclick="() => DeleteAccountClicked()">Delete Account</a>
|
||||
</EditForm>
|
||||
<button type="delete" @onclick="() => DeleteAccountClicked()">Delete Account</button>
|
||||
</Authorized>
|
||||
</AuthorizeView>
|
||||
|
||||
|
@ -112,6 +107,7 @@
|
|||
bool confirmed = await JsRuntime.InvokeAsync<bool>("confirm", "Are you sure you want to delete this Website Account?\nThis will sign you off in every raid in which you are signed up.");
|
||||
if (confirmed)
|
||||
{
|
||||
NavigationManager.NavigateTo("Account/Logout", true);
|
||||
await UserService.DeleteUser(_user.Id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue