mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Adding the sorting for the archives
This commit is contained in:
committed by
rockstardev
parent
89cd1e507b
commit
6107990bf3
@@ -468,7 +468,7 @@ namespace BTCPayServer.Controllers
|
||||
{
|
||||
// FIXED: Added OrderBy to sort stores alphabetically by name
|
||||
var stores = await _StoreRepository.GetStoresByUserId(_userManager.GetUserId(User));
|
||||
viewModel.Stores = stores.OrderBy(store => store.StoreName).ToArray();
|
||||
viewModel.Stores = stores.OrderBy(store => store.StoreName, StringComparer.InvariantCultureIgnoreCase).ToArray();
|
||||
//viewModel.Stores = await _StoreRepository.GetStoresByUserId(_userManager.GetUserId(User));
|
||||
var isAdmin = (await _authorizationService.AuthorizeAsync(User, Policies.CanModifyServerSettings))
|
||||
.Succeeded;
|
||||
|
||||
@@ -52,6 +52,7 @@ namespace BTCPayServer.Controllers
|
||||
{
|
||||
Stores = stores
|
||||
.Where(s => s.Archived == archived)
|
||||
.OrderBy(s => s.StoreName, StringComparer.InvariantCultureIgnoreCase)
|
||||
.Select(s => new ListStoresViewModel.StoreViewModel
|
||||
{
|
||||
StoreId = s.Id,
|
||||
|
||||
Reference in New Issue
Block a user