Skip to content

Commit

Permalink
order award categories in the award editor (by description)
Browse files Browse the repository at this point in the history
  • Loading branch information
vadosnaprimer committed Jan 26, 2024
1 parent 828407a commit 6c948c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions TASVideos/Pages/AwardsEditor/Assign.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public async Task<IActionResult> OnPostRevoke(string shortName)
private async Task Initialize()
{
AvailableAwardCategories = UiDefaults.DefaultEntry.Concat(await _awards.AwardCategories()
.OrderBy(c => c.Description)
.ToDropdown(Year)
.ToListAsync())
.ToList();
Expand Down
5 changes: 3 additions & 2 deletions TASVideos/Pages/AwardsEditor/UploadImage.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ await _mediaFileUploader.UploadAwardImage(
private async Task Initialize()
{
AvailableAwardCategories = UiDefaults.DefaultEntry.Concat(await _awards.AwardCategories()
.ToDropdown(Year)
.ToListAsync())
.OrderBy(c => c.Description)
.ToDropdown(Year)
.ToListAsync())
.ToList();
}
}

0 comments on commit 6c948c4

Please sign in to comment.