2022-01-07 12:32:00 +09:00
|
|
|
@model StoreDashboardViewModel;
|
2022-02-10 12:23:45 +09:00
|
|
|
|
|
|
|
@inject BTCPayNetworkProvider networkProvider
|
2022-01-13 09:08:15 +01:00
|
|
|
@{
|
2022-02-10 12:23:45 +09:00
|
|
|
ViewData.SetActivePage(StoreNavPages.Dashboard, Model.StoreName, Model.StoreId);
|
|
|
|
var isReady = Model.WalletEnabled || Model.LightningEnabled;
|
2022-02-10 12:43:26 +09:00
|
|
|
var defaultCryptoCode = networkProvider.DefaultNetwork.CryptoCode;
|
2022-01-13 09:08:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
<partial name="_StatusMessage" />
|
|
|
|
|
2022-01-24 18:07:52 -08:00
|
|
|
<h2 class="mt-1 mb-3">@ViewData["Title"]</h2>
|
2022-01-13 09:08:15 +01:00
|
|
|
|
|
|
|
@if (isReady)
|
|
|
|
{
|
|
|
|
<p class="lead text-secondary">This store is ready to accept transactions, good job!</p>
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<p class="lead text-secondary">To start accepting payments, set up a wallet or a Lightning node.</p>
|
|
|
|
}
|
|
|
|
|
2022-01-27 03:56:46 +01:00
|
|
|
<div class="list-group" id="SetupGuide">
|
|
|
|
<div class="list-group-item d-flex align-items-center" id="SetupGuide-StoreDone">
|
|
|
|
<vc:icon symbol="done"/>
|
|
|
|
<div class="content">
|
|
|
|
<h5 class="mb-0 text-success">Create your store</h5>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@if (!Model.WalletEnabled)
|
|
|
|
{
|
2022-02-10 12:23:45 +09:00
|
|
|
<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">
|
2022-02-10 04:17:15 +01:00
|
|
|
<vc:icon symbol="new-wallet"/>
|
|
|
|
<div class="content">
|
|
|
|
<h5 class="mb-0">Set up a wallet</h5>
|
|
|
|
</div>
|
|
|
|
<vc:icon symbol="caret-right"/>
|
|
|
|
</a>
|
2022-01-27 03:56:46 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<div class="list-group-item d-flex align-items-center" id="SetupGuide-WalletDone">
|
|
|
|
<vc:icon symbol="done"/>
|
|
|
|
<div class="content">
|
|
|
|
<h5 class="mb-0 text-success">Set up a wallet</h5>
|
2022-01-13 09:08:15 +01:00
|
|
|
</div>
|
2022-01-27 03:56:46 +01:00
|
|
|
</div>
|
|
|
|
}
|
|
|
|
@if (!Model.LightningEnabled)
|
|
|
|
{
|
2022-02-10 12:23:45 +09:00
|
|
|
<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">
|
2022-02-10 04:17:15 +01:00
|
|
|
<vc:icon symbol="new-wallet"/>
|
|
|
|
<div class="content">
|
|
|
|
<h5 class="mb-0">Set up a Lightning node</h5>
|
|
|
|
</div>
|
|
|
|
<vc:icon symbol="caret-right"/>
|
|
|
|
</a>
|
2022-01-27 03:56:46 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<div class="list-group-item d-flex align-items-center" id="SetupGuide-LightningDone">
|
|
|
|
<vc:icon symbol="done"/>
|
|
|
|
<div class="content">
|
|
|
|
<h5 class="mb-0 text-success">Set up a Lightning node</h5>
|
|
|
|
</div>
|
2022-01-13 09:08:15 +01:00
|
|
|
</div>
|
2022-01-27 03:56:46 +01:00
|
|
|
}
|
2022-01-13 09:08:15 +01:00
|
|
|
</div>
|