fix(adminui): disable RoleGrants buttons during save (review)
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user