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:
d11n
2022-01-18 02:20:59 +01:00
committed by GitHub
parent c3f73c0de3
commit 1d3f74c8bb
8 changed files with 74 additions and 37 deletions

View File

@@ -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);