|
|
@ -321,12 +321,18 @@ namespace Volo.Abp.BlazoriseUI |
|
|
return InvokeAsync(CreateModal.Hide); |
|
|
return InvokeAsync(CreateModal.Hide); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected virtual void ClosingCreateModal(ModalClosingEventArgs eventArgs) |
|
|
|
|
|
{ |
|
|
|
|
|
// cancel close if clicked outside of modal area
|
|
|
|
|
|
eventArgs.Cancel = eventArgs.CloseReason == CloseReason.FocusLostClosing; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
protected virtual async Task OpenEditModalAsync(TListViewModel entity) |
|
|
protected virtual async Task OpenEditModalAsync(TListViewModel entity) |
|
|
{ |
|
|
{ |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
EditValidationsRef?.ClearAll(); |
|
|
EditValidationsRef?.ClearAll(); |
|
|
|
|
|
|
|
|
await CheckUpdatePolicyAsync(); |
|
|
await CheckUpdatePolicyAsync(); |
|
|
|
|
|
|
|
|
var entityDto = await AppService.GetAsync(entity.Id); |
|
|
var entityDto = await AppService.GetAsync(entity.Id); |
|
|
@ -377,6 +383,12 @@ namespace Volo.Abp.BlazoriseUI |
|
|
return Task.CompletedTask; |
|
|
return Task.CompletedTask; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected virtual void ClosingEditModal(ModalClosingEventArgs eventArgs) |
|
|
|
|
|
{ |
|
|
|
|
|
// cancel close if clicked outside of modal area
|
|
|
|
|
|
eventArgs.Cancel = eventArgs.CloseReason == CloseReason.FocusLostClosing; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
protected virtual async Task CreateEntityAsync() |
|
|
protected virtual async Task CreateEntityAsync() |
|
|
{ |
|
|
{ |
|
|
try |
|
|
try |
|
|
|