Browse Source
Fix resource permission modal losing the selected lookup service
pull/25902/head
maliming
2 months ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
4 additions and
2 deletions
-
modules/permission-management/src/Volo.Abp.PermissionManagement.Blazor.MudBlazor/Components/ResourcePermissionManagementModal.razor.cs
|
|
|
@ -109,7 +109,9 @@ public partial class ResourcePermissionManagementModal |
|
|
|
ProviderKeys = new List<SearchProviderKeyInfo>(); |
|
|
|
if (_createFormRef != null) |
|
|
|
{ |
|
|
|
await _createFormRef.ResetAsync(); |
|
|
|
// ResetAsync would clear the radio group too, which feeds back into
|
|
|
|
// OnLookupServiceCheckedValueChanged and wipes CurrentLookupService.
|
|
|
|
await _createFormRef.ResetValidationAsync(); |
|
|
|
} |
|
|
|
|
|
|
|
CreateEntity = new CreateModel |
|
|
|
@ -211,7 +213,7 @@ public partial class ResourcePermissionManagementModal |
|
|
|
ProviderKeys = new List<SearchProviderKeyInfo>(); |
|
|
|
if (_createFormRef != null) |
|
|
|
{ |
|
|
|
await _createFormRef.ResetAsync(); |
|
|
|
await _createFormRef.ResetValidationAsync(); |
|
|
|
} |
|
|
|
await InvokeAsync(StateHasChanged); |
|
|
|
} |
|
|
|
|