Browse Source
Merge pull request #22914 from abpframework/AbpCrudPageBase-Hide
Hide modal before creating NewEntity.
pull/22924/head
Yağmur Çelik
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
3 deletions
-
framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs
|
|
|
@ -357,10 +357,10 @@ public abstract class AbpCrudPageBase< |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
protected virtual Task CloseCreateModalAsync() |
|
|
|
protected virtual async Task CloseCreateModalAsync() |
|
|
|
{ |
|
|
|
await InvokeAsync(CreateModal!.Hide); |
|
|
|
NewEntity = new TCreateViewModel(); |
|
|
|
return InvokeAsync(CreateModal!.Hide); |
|
|
|
} |
|
|
|
|
|
|
|
protected virtual Task ClosingCreateModal(ModalClosingEventArgs eventArgs) |
|
|
|
@ -474,11 +474,11 @@ public abstract class AbpCrudPageBase< |
|
|
|
|
|
|
|
protected virtual async Task OnCreatedEntityAsync() |
|
|
|
{ |
|
|
|
NewEntity = new TCreateViewModel(); |
|
|
|
await GetEntitiesAsync(); |
|
|
|
|
|
|
|
await InvokeAsync(CreateModal!.Hide); |
|
|
|
await Notify.Success(GetCreateMessage()); |
|
|
|
NewEntity = new TCreateViewModel(); |
|
|
|
} |
|
|
|
|
|
|
|
protected virtual string GetCreateMessage() |
|
|
|
|