Browse Source

Merge pull request #25368 from abpframework/auto-merge/rel-10-4/4543

Merge branch dev with rel-10.4
pull/25371/head
Volosoft Agent 6 months ago
committed by GitHub
parent
commit
8c68a40ec8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 14
      framework/src/Volo.Abp.MudBlazorUI/AbpMudCrudPageBase.cs
  2. 2
      framework/src/Volo.Abp.MudBlazorUI/Components/AbpMudExtensibleDataGrid.razor.cs
  3. 2
      framework/src/Volo.Abp.MudBlazorUI/Components/MudEntityAction.razor.cs
  4. 2
      framework/src/Volo.Abp.MudBlazorUI/Components/ObjectExtending/MudLookupExtensionProperty.razor.cs

14
framework/src/Volo.Abp.MudBlazorUI/AbpMudCrudPageBase.cs

@ -375,7 +375,7 @@ public abstract class AbpMudCrudPageBase<
if (_createDialog != null) if (_createDialog != null)
{ {
await _createDialog.ShowAsync(); await InvokeAsync(() => _createDialog.ShowAsync());
} }
} }
catch (Exception ex) catch (Exception ex)
@ -384,13 +384,14 @@ public abstract class AbpMudCrudPageBase<
} }
} }
protected virtual async Task CloseCreateDialogAsync() protected virtual Task CloseCreateDialogAsync()
{ {
NewEntity = new TCreateViewModel(); NewEntity = new TCreateViewModel();
if (_createDialog != null) if (_createDialog != null)
{ {
await _createDialog.CloseAsync(); return InvokeAsync(() => _createDialog.CloseAsync());
} }
return Task.CompletedTask;
} }
protected virtual async Task OpenEditDialogAsync(TListViewModel entity) protected virtual async Task OpenEditDialogAsync(TListViewModel entity)
@ -406,7 +407,7 @@ public abstract class AbpMudCrudPageBase<
if (_editDialog != null) if (_editDialog != null)
{ {
await _editDialog.ShowAsync(); await InvokeAsync(() => _editDialog.ShowAsync());
} }
} }
catch (Exception ex) catch (Exception ex)
@ -440,12 +441,13 @@ public abstract class AbpMudCrudPageBase<
return ObjectMapper.Map<TUpdateViewModel, TUpdateInput>(updateViewModel); return ObjectMapper.Map<TUpdateViewModel, TUpdateInput>(updateViewModel);
} }
protected virtual async Task CloseEditDialogAsync() protected virtual Task CloseEditDialogAsync()
{ {
if (_editDialog != null) if (_editDialog != null)
{ {
await _editDialog.CloseAsync(); return InvokeAsync(() => _editDialog.CloseAsync());
} }
return Task.CompletedTask;
} }
protected virtual async Task CreateEntityAsync() protected virtual async Task CreateEntityAsync()

2
framework/src/Volo.Abp.MudBlazorUI/Components/AbpMudExtensibleDataGrid.razor.cs

@ -61,7 +61,7 @@ public partial class AbpMudExtensibleDataGrid<TItem> : ComponentBase
{ {
if (_dataGrid != null && ServerData != null) if (_dataGrid != null && ServerData != null)
{ {
await _dataGrid.ReloadServerData(); await InvokeAsync(() => _dataGrid.ReloadServerData());
} }
} }

2
framework/src/Volo.Abp.MudBlazorUI/Components/MudEntityAction.razor.cs

@ -69,7 +69,7 @@ public partial class MudEntityAction<TItem> : ComponentBase
{ {
if (await UiMessageService.Confirm(ConfirmationMessage())) if (await UiMessageService.Confirm(ConfirmationMessage()))
{ {
await InvokeAsync(async () => await Clicked.InvokeAsync()); await InvokeAsync(() => Clicked.InvokeAsync());
} }
} }
else else

2
framework/src/Volo.Abp.MudBlazorUI/Components/ObjectExtending/MudLookupExtensionProperty.razor.cs

@ -58,7 +58,7 @@ public partial class MudLookupExtensionProperty<TEntity, TResourceType>
if (firstRender) if (firstRender)
{ {
LookupItems = await GetLookupItemsAsync(string.Empty); LookupItems = await GetLookupItemsAsync(string.Empty);
StateHasChanged(); await InvokeAsync(StateHasChanged);
} }
} }

Loading…
Cancel
Save