fix(adminui): disable RoleGrants buttons during save (review)
This commit is contained in:
@@ -126,6 +126,7 @@
|
|||||||
_error = null;
|
_error = null;
|
||||||
if (string.IsNullOrWhiteSpace(_newGroup)) { _error = "LDAP group is required."; return; }
|
if (string.IsNullOrWhiteSpace(_newGroup)) { _error = "LDAP group is required."; return; }
|
||||||
_busy = true;
|
_busy = true;
|
||||||
|
StateHasChanged();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
await RoleMappings.CreateAsync(new LdapGroupRoleMapping
|
await RoleMappings.CreateAsync(new LdapGroupRoleMapping
|
||||||
@@ -143,6 +144,7 @@
|
|||||||
private async Task DeleteAsync(Guid id)
|
private async Task DeleteAsync(Guid id)
|
||||||
{
|
{
|
||||||
_error = null; _busy = true;
|
_error = null; _busy = true;
|
||||||
|
StateHasChanged();
|
||||||
try { await RoleMappings.DeleteAsync(id, default); await ReloadAsync(); }
|
try { await RoleMappings.DeleteAsync(id, default); await ReloadAsync(); }
|
||||||
catch (Exception ex) { _error = ex.Message; }
|
catch (Exception ex) { _error = ex.Message; }
|
||||||
finally { _busy = false; }
|
finally { _busy = false; }
|
||||||
|
|||||||
Reference in New Issue
Block a user