forked from Sarah/Lieb-Website
Added account management sites
This commit is contained in:
parent
c8252daf88
commit
7113e3abee
10 changed files with 332 additions and 64 deletions
|
@ -140,10 +140,10 @@
|
|||
<AuthorizeView Policy="RaidLead">
|
||||
<div class="nav-item px-3">
|
||||
@{string navLink = $"raidedit/{@Raid.RaidId}";}
|
||||
<NavLink class="nav-link" href="@navLink">
|
||||
<span class="oi oi-plus" aria-hidden="true"></span> Edit
|
||||
</NavLink>
|
||||
</div>
|
||||
<NavLink class="nav-link" href="@navLink">
|
||||
<span class="oi oi-plus" aria-hidden="true"></span> Edit
|
||||
</NavLink>
|
||||
</div>
|
||||
</AuthorizeView>
|
||||
</body>
|
||||
|
||||
|
|
|
@ -150,7 +150,7 @@
|
|||
|
||||
async Task DeleteRaidClicked()
|
||||
{
|
||||
bool confirmed = await JsRuntime.InvokeAsync<bool>("confirm", "Are you sure?");
|
||||
bool confirmed = await JsRuntime.InvokeAsync<bool>("confirm", "Are you sure you want to delete the raid?");
|
||||
if (confirmed)
|
||||
{
|
||||
await RaidService.DeleteRaid(_raid.RaidId);
|
||||
|
@ -171,5 +171,6 @@
|
|||
}
|
||||
|
||||
await RaidService.AddOrEditRaid(_raid);
|
||||
NavigationManager.NavigateTo("raidoverview");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue