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
parent
commit
605dc64412
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs

6
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()

Loading…
Cancel
Save