deleting Raids and Templates is now logged
This commit is contained in:
parent
300ab2370f
commit
de3a6a9f83
4 changed files with 32 additions and 7 deletions
|
@ -259,7 +259,7 @@
|
|||
bool confirmed = await JsRuntime.InvokeAsync<bool>("confirm", "Are you sure you want to delete the raid?");
|
||||
if (confirmed)
|
||||
{
|
||||
await RaidService.DeleteRaid(_raid.RaidId);
|
||||
await RaidService.DeleteRaid(_raid.RaidId, _user.Id);
|
||||
NavigationManager.NavigateTo("raidoverview");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -177,7 +177,7 @@
|
|||
|
||||
</EditForm>
|
||||
<br/>
|
||||
<button type=button @onclick="() => DeleteRaidClicked()">Delete Raid</button>
|
||||
<button type=button @onclick="() => DeleteRaidClicked()">Delete Template</button>
|
||||
</AuthorizeView>
|
||||
|
||||
@code {
|
||||
|
@ -281,7 +281,7 @@
|
|||
bool confirmed = await JsRuntime.InvokeAsync<bool>("confirm", "Are you sure you want to delete the raid?");
|
||||
if (confirmed)
|
||||
{
|
||||
await RaidTemplateService.DeleteTemplate(_template.RaidTemplateId);
|
||||
await RaidTemplateService.DeleteTemplate(_template.RaidTemplateId, _user.Id);
|
||||
NavigationManager.NavigateTo("raidtemplateoverview");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue