mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +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;
|
||||
|
||||
Reference in New Issue
Block a user