Skip to content

Commit

Permalink
Fix convert issue in AbpCrudPageBase.
Browse files Browse the repository at this point in the history
  • Loading branch information
maliming committed Jun 29, 2021
1 parent 4c6cee1 commit c6458d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions framework/src/Volo.Abp.BlazoriseUI/AbpCrudPageBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -494,17 +494,17 @@ protected virtual async Task DeleteEntityAsync(TListViewModel entity)
await HandleErrorAsync(ex);
}
}

protected virtual Task OnDeletingEntityAsync()
{
return Task.CompletedTask;
}

protected virtual async Task OnDeletedEntityAsync()
{
await GetEntitiesAsync();
await InvokeAsync(StateHasChanged);
}
}

protected virtual string GetDeleteConfirmationMessage(TListViewModel entity)
{
Expand Down Expand Up @@ -596,7 +596,7 @@ protected virtual IEnumerable<TableColumn> GetExtensionTableColumns(string modul
if (propertyInfo.Type.IsEnum)
{
column.ValueConverter = (val) =>
EnumHelper.GetLocalizedMemberName(propertyInfo.Type, val, StringLocalizerFactory);
EnumHelper.GetLocalizedMemberName(propertyInfo.Type, val.As<ExtensibleObject>().ExtraProperties[propertyInfo.Name], StringLocalizerFactory);
}

yield return column;
Expand Down

0 comments on commit c6458d9

Please sign in to comment.