fix(adminui): disable RoleGrants buttons during save (review)

This commit is contained in:
Joseph Doherty
2026-05-29 09:58:05 -04:00
parent 4df5b849ac
commit 79b2345834
@@ -126,6 +126,7 @@
_error = null;
if (string.IsNullOrWhiteSpace(_newGroup)) { _error = "LDAP group is required."; return; }
_busy = true;
StateHasChanged();
try
{
await RoleMappings.CreateAsync(new LdapGroupRoleMapping
@@ -143,6 +144,7 @@
private async Task DeleteAsync(Guid id)
{
_error = null; _busy = true;
StateHasChanged();
try { await RoleMappings.DeleteAsync(id, default); await ReloadAsync(); }
catch (Exception ex) { _error = ex.Message; }
finally { _busy = false; }