mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-04 18:06:08 +01:00
Setup guide: Link to first crypto if BTC not available
This commit is contained in:
parent
99c4ebe046
commit
efed00f58b
2 changed files with 7 additions and 5 deletions
|
@ -92,7 +92,6 @@ namespace BTCPayServer
|
|||
return new BTCPayNetworkProvider(this, cryptoCodes);
|
||||
}
|
||||
|
||||
[Obsolete("To use only for legacy stuff")]
|
||||
public BTCPayNetwork BTC => GetNetwork<BTCPayNetwork>("BTC");
|
||||
|
||||
public void Add(BTCPayNetwork network)
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
@model StoreDashboardViewModel;
|
||||
|
||||
@inject BTCPayNetworkProvider networkProvider
|
||||
@{
|
||||
ViewData.SetActivePage(StoreNavPages.Dashboard, Model.StoreName, Model.StoreId);
|
||||
var isReady = Model.WalletEnabled || Model.LightningEnabled;
|
||||
ViewData.SetActivePage(StoreNavPages.Dashboard, Model.StoreName, Model.StoreId);
|
||||
var isReady = Model.WalletEnabled || Model.LightningEnabled;
|
||||
var defaultCryptoCode = (networkProvider.BTC ?? networkProvider.GetAll().First()).CryptoCode;
|
||||
}
|
||||
|
||||
<partial name="_StatusMessage" />
|
||||
|
@ -26,7 +29,7 @@ else
|
|||
</div>
|
||||
@if (!Model.WalletEnabled)
|
||||
{
|
||||
<a asp-controller="UIStores" asp-action="SetupWallet" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="BTC" id="SetupGuide-Wallet" class="list-group-item list-group-item-action d-flex align-items-center order-1">
|
||||
<a asp-controller="UIStores" asp-action="SetupWallet" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="@defaultCryptoCode" id="SetupGuide-Wallet" class="list-group-item list-group-item-action d-flex align-items-center order-1">
|
||||
<vc:icon symbol="new-wallet"/>
|
||||
<div class="content">
|
||||
<h5 class="mb-0">Set up a wallet</h5>
|
||||
|
@ -45,7 +48,7 @@ else
|
|||
}
|
||||
@if (!Model.LightningEnabled)
|
||||
{
|
||||
<a asp-controller="UIStores" asp-action="SetupLightningNode" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="BTC" id="SetupGuide-Lightning" class="list-group-item list-group-item-action d-flex align-items-center order-1">
|
||||
<a asp-controller="UIStores" asp-action="SetupLightningNode" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="@defaultCryptoCode" id="SetupGuide-Lightning" class="list-group-item list-group-item-action d-flex align-items-center order-1">
|
||||
<vc:icon symbol="new-wallet"/>
|
||||
<div class="content">
|
||||
<h5 class="mb-0">Set up a Lightning node</h5>
|
||||
|
|
Loading…
Add table
Reference in a new issue