mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +01:00
* Update wallet navigation * Find matching text color for label bg color * Cleanup * Extract WalletNav component * Move PSBT link to Send and Rescan link to Settings * Update transactions view * Test fixes * Adapt invoices list actions * Show invoice actions only if there are any invoices * Link wallet name and balance to tranactions list * Move wallet related actions from list to settings * Fix main menu z-index Needs a value between fixed and the offcanvas backdrop, see https://getbootstrap.com/docs/5.1/layout/z-index/ * Update receive and send views
29 lines
1.6 KiB
Text
29 lines
1.6 KiB
Text
@using BTCPayServer.Views.Stores
|
|
@using BTCPayServer.Client
|
|
@using BTCPayServer.Views.Wallets
|
|
@using BTCPayServer.Abstractions.Extensions
|
|
@inject BTCPayNetworkProvider _btcPayNetworkProvider
|
|
|
|
@model BTCPayServer.Components.WalletNav.WalletNavViewModel
|
|
@addTagHelper *, BundlerMinifier.TagHelpers
|
|
|
|
<div class="d-sm-flex align-items-center justify-content-between">
|
|
<a asp-controller="UIWallets" asp-action="WalletTransactions" asp-route-walletId="@Model.WalletId" class="unobtrusive-link">
|
|
<h2 class="mb-1">@Model.Label</h2>
|
|
<div class="text-muted fw-semibold">
|
|
@Model.Balance @Model.Network.CryptoCode
|
|
</div>
|
|
</a>
|
|
<div class="d-flex gap-3 mt-3 mt-sm-0" permission="@Policies.CanModifyStoreSettings">
|
|
@if (!Model.Network.ReadonlyWallet)
|
|
{
|
|
<a class="btn btn-primary" asp-controller="UIWallets" asp-action="WalletSend" asp-route-walletId="@Model.WalletId" id="WalletNav-Send">Send</a>
|
|
}
|
|
<a class="btn btn-primary" asp-controller="UIWallets" asp-action="WalletReceive" asp-route-walletId="@Model.WalletId" id="WalletNav-Receive">Receive</a>
|
|
<a class="btn btn-secondary @ViewData.IsActivePage(WalletsNavPages.Settings) @ViewData.IsActivePage(StoreNavPages.OnchainSettings)" asp-controller="UIStores" asp-action="WalletSettings" asp-route-cryptoCode="@Model.WalletId.CryptoCode" asp-route-storeId="@Model.WalletId.StoreId" title="Settings" id="WalletNav-Settings">
|
|
<vc:icon symbol="settings"/>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<vc:ui-extension-point location="wallet-nav" model="@Model"/>
|