Fix archive default sort order
parent
c4793daf07
commit
81f8d55694
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
<Space Direction="DirectionVHType.Vertical" Style="width: 100%">
|
<Space Direction="DirectionVHType.Vertical" Style="width: 100%">
|
||||||
<SpaceItem>
|
<SpaceItem>
|
||||||
<Table TItem="Archive" DataSource="@Archives.OrderByDescending(a => a.CreatedOn)" HidePagination="true" Responsive>
|
<Table TItem="Archive" DataSource="@Archives" HidePagination="true" Responsive>
|
||||||
<PropertyColumn Property="a => a.Version" />
|
<PropertyColumn Property="a => a.Version" />
|
||||||
<PropertyColumn Property="a => a.CompressedSize">
|
<PropertyColumn Property="a => a.CompressedSize">
|
||||||
@ByteSizeLib.ByteSize.FromBytes(context.CompressedSize)
|
@ByteSizeLib.ByteSize.FromBytes(context.CompressedSize)
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
<PropertyColumn Property="a => a.CreatedBy">
|
<PropertyColumn Property="a => a.CreatedBy">
|
||||||
@context.CreatedBy?.UserName
|
@context.CreatedBy?.UserName
|
||||||
</PropertyColumn>
|
</PropertyColumn>
|
||||||
<PropertyColumn Property="a => a.CreatedOn" Format="MM/dd/yyyy hh:mm tt" />
|
<PropertyColumn Property="a => a.CreatedOn" Format="MM/dd/yyyy hh:mm tt" DefaultSortOrder="@SortDirection.Descending" />
|
||||||
<ActionColumn Title="">
|
<ActionColumn Title="">
|
||||||
<Space Style="display: flex; justify-content: end">
|
<Space Style="display: flex; justify-content: end">
|
||||||
<SpaceItem>
|
<SpaceItem>
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
|
|
||||||
private async Task LoadData()
|
private async Task LoadData()
|
||||||
{
|
{
|
||||||
Archives = await ArchiveService.Get(a => a.GameId == GameId).OrderByDescending(a => a.CreatedOn).ToListAsync();
|
Archives = await ArchiveService.Get(a => a.GameId == GameId).ToListAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task Download(Archive archive)
|
private async Task Download(Archive archive)
|
||||||
|
|
Loading…
Reference in New Issue