mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Audit all changes made in the admin view.
This commit is contained in:
@@ -28,6 +28,7 @@ using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Blazorise;
|
||||
using Marechai.ViewModels;
|
||||
using Microsoft.AspNetCore.Components.Authorization;
|
||||
|
||||
namespace Marechai.Pages.Admin
|
||||
{
|
||||
@@ -53,11 +54,12 @@ namespace Marechai.Pages.Admin
|
||||
|
||||
_deleteInProgress = true;
|
||||
_processors = null;
|
||||
AuthenticationState authState = await AuthenticationStateProvider.GetAuthenticationStateAsync();
|
||||
|
||||
// Yield thread to let UI to update
|
||||
await Task.Yield();
|
||||
|
||||
await Service.DeleteAsync(_processor.Id);
|
||||
await Service.DeleteAsync(_processor.Id, (await UserManager.GetUserAsync(authState.User)).Id);
|
||||
_processors = await Service.GetAsync();
|
||||
|
||||
_deleteInProgress = false;
|
||||
|
||||
Reference in New Issue
Block a user