mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
13 lines
759 B
Plaintext
13 lines
759 B
Plaintext
|
@using BTCPayServer.Services.Altcoins.Zcash.Configuration
|
||
|
@using BTCPayServer.Services.Altcoins.Zcash.UI
|
||
|
@inject SignInManager<ApplicationUser> SignInManager;
|
||
|
@inject ZcashLikeConfiguration ZcashLikeConfiguration;
|
||
|
@{
|
||
|
var controller = ViewContext.RouteData.Values["Controller"].ToString();
|
||
|
var isZcash = controller.Equals(nameof(UIZcashLikeStoreController), StringComparison.InvariantCultureIgnoreCase);
|
||
|
}
|
||
|
@if (SignInManager.IsSignedIn(User) && User.IsInRole(Roles.ServerAdmin) && ZcashLikeConfiguration.ZcashLikeConfigurationItems.Any())
|
||
|
{
|
||
|
<a class="nav-link @(isZcash ? "active" : string.Empty)" asp-route-storeId="@this.Context.GetRouteValue("storeId")" asp-action="GetStoreZcashLikePaymentMethods" asp-controller="UIZcashLikeStore">Zcash</a>
|
||
|
}
|