mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-26 07:23:06 +01:00
* Refactor plugins * Add missing names to view models * Cleanups * Replace SalesAppBaseType by two interfaces --------- Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
20 lines
804 B
Text
20 lines
804 B
Text
@using BTCPayServer.Client
|
|
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
|
@using BTCPayServer.Views.Apps
|
|
@using BTCPayServer.Abstractions.Extensions
|
|
@using BTCPayServer.Abstractions.TagHelpers
|
|
@using BTCPayServer.Plugins.PointOfSale
|
|
@model BTCPayServer.Components.MainNav.StoreApp
|
|
|
|
@{ var store = Context.GetStoreData(); }
|
|
|
|
@if (store != null && Model.AppType == PointOfSaleAppType.AppType)
|
|
{
|
|
<li class="nav-item" permission="@Policies.CanModifyStoreSettings">
|
|
<a asp-area="" asp-controller="UIPointOfSale" asp-action="UpdatePointOfSale" asp-route-appId="@Model.Id" class="nav-link @ViewData.IsActivePage(AppsNavPages.Update, Model.Id)" id="@($"StoreNav-App-{Model.Id}")">
|
|
<vc:icon symbol="@Model.AppType.ToLower()"/>
|
|
<span>@Model.AppName</span>
|
|
</a>
|
|
</li>
|
|
}
|
|
|