mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
Home sweet home (#3313)
* Link to store home, show home only if there is no store * Handle store guest case * Apply correct policies to nav items
This commit is contained in:
@@ -43,6 +43,7 @@ namespace BTCPayServer.Components.StoreSelector
|
||||
Text = store.StoreName,
|
||||
Value = store.Id,
|
||||
Selected = store.Id == currentStore?.Id,
|
||||
IsOwner = store.Role == StoreRoles.Owner,
|
||||
WalletId = walletId
|
||||
};
|
||||
})
|
||||
@@ -52,7 +53,8 @@ namespace BTCPayServer.Components.StoreSelector
|
||||
{
|
||||
Options = options,
|
||||
CurrentStoreId = currentStore?.Id,
|
||||
CurrentDisplayName = currentStore?.StoreName
|
||||
CurrentDisplayName = currentStore?.StoreName,
|
||||
CurrentStoreIsOwner = currentStore?.Role == StoreRoles.Owner
|
||||
};
|
||||
|
||||
return View(vm);
|
||||
|
||||
Reference in New Issue
Block a user