mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 14:40:36 +01:00
* Add enabled toggle to wallet settings view * Add enabled toggle to Lightning settings view * Remove redundant payment methods from store settings * Rename Payment Methods to Payments * Adapt tests * Fix invoice state toggle on details page * Add spacing on Lightning sett8ings page
118 lines
4.4 KiB
Text
118 lines
4.4 KiB
Text
@model StoreDashboardViewModel;
|
|
@{
|
|
ViewData.SetActivePage(StoreNavPages.Dashboard, Model.StoreName, Model.StoreId);
|
|
var isReady = Model.WalletEnabled || Model.LightningEnabled;
|
|
}
|
|
|
|
@section PageHeadContent
|
|
{
|
|
<style>
|
|
.list-group-item .image {
|
|
display: flex;
|
|
flex: 0 0 1rem;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.list-group-item .icon {
|
|
width: 1.5rem;
|
|
height: 1.5rem;
|
|
margin: 1rem;
|
|
}
|
|
|
|
.list-group-item .content {
|
|
flex: 1;
|
|
padding: 1rem 0;
|
|
}
|
|
</style>
|
|
}
|
|
|
|
<partial name="_StatusMessage" />
|
|
|
|
<h2>@ViewData["Title"]</h2>
|
|
|
|
@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>
|
|
}
|
|
|
|
<div class="row">
|
|
<div class="col-md-7 col-xl-5">
|
|
<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)
|
|
{
|
|
if (!Model.AltcoinsBuild)
|
|
{
|
|
<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">
|
|
<vc:icon symbol="new-wallet"/>
|
|
<div class="content">
|
|
<h5 class="mb-0">Set up a wallet</h5>
|
|
</div>
|
|
<vc:icon symbol="caret-right"/>
|
|
</a>
|
|
}
|
|
else
|
|
{
|
|
<a asp-controller="UIStores" asp-action="Payment" asp-route-storeId="@Model.StoreId" 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>
|
|
</div>
|
|
<vc:icon symbol="caret-right"/>
|
|
</a>
|
|
}
|
|
}
|
|
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>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (!Model.LightningEnabled)
|
|
{
|
|
if (!Model.AltcoinsBuild)
|
|
{
|
|
<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">
|
|
<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>
|
|
}
|
|
else
|
|
{
|
|
<a asp-controller="UIStores" asp-action="Payment" asp-route-storeId="@Model.StoreId" 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>
|
|
</div>
|
|
<vc:icon symbol="caret-right"/>
|
|
</a>
|
|
}
|
|
}
|
|
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>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|