diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/RoleGrants.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/RoleGrants.razor index 7afc3d69..4ba3abfa 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/RoleGrants.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/RoleGrants.razor @@ -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; }