deleting Raids and Templates is now logged

This commit is contained in:
Sarah Faey 2022-12-03 17:13:29 +01:00
parent 300ab2370f
commit de3a6a9f83
4 changed files with 32 additions and 7 deletions

View file

@ -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");
}
}

View file

@ -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");
}
}