mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-03 14:14:28 +01:00
* BUmp LNURL * Show app view link in nav when not enoguh permission to modify * FIx permission misalignment on create pull payments We have explicit permissions for pull payment creation, even allow them to be created through the invoices, but the create ui and cta were blocked behind canmodify store permission. * Make Ln address pass an invoiceId in the context to resolve breaking change
37 lines
1.6 KiB
Plaintext
37 lines
1.6 KiB
Plaintext
@using BTCPayServer.Client
|
|
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
|
@using BTCPayServer.Views.Apps
|
|
@using BTCPayServer.Abstractions.Extensions
|
|
@using BTCPayServer.Abstractions.TagHelpers
|
|
@using BTCPayServer.Plugins.Crowdfund
|
|
@using BTCPayServer.Services.Apps
|
|
@inject AppService AppService;
|
|
@model BTCPayServer.Components.MainNav.MainNavViewModel
|
|
@{
|
|
var store = Context.GetStoreData();
|
|
}
|
|
|
|
@if (store != null)
|
|
{
|
|
var appType = AppService.GetAppType(CrowdfundAppType.AppType)!;
|
|
<li class="nav-item" permission="@Policies.CanModifyStoreSettings">
|
|
<a asp-area="" asp-controller="UIApps" asp-action="CreateApp" asp-route-storeId="@store.Id" asp-route-appType="@appType.Type" class="nav-link @ViewData.IsActivePage(AppsNavPages.Create, appType.Type)" id="@($"StoreNav-Create{appType.Type}")">
|
|
<vc:icon symbol="crowdfund" />
|
|
<span>@appType.Description</span>
|
|
</a>
|
|
</li>
|
|
@foreach (var app in Model.Apps.Where(app => app.AppType == appType.Type))
|
|
{
|
|
<li class="nav-item nav-item-sub" permission="@Policies.CanModifyStoreSettings">
|
|
<a asp-area="" asp-controller="UICrowdfund" asp-action="UpdateCrowdfund" asp-route-appId="@app.Id" class="nav-link @ViewData.IsActivePage(AppsNavPages.Update, app.Id)" id="@($"StoreNav-App-{app.Id}")">
|
|
<span>@app.AppName</span>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item nav-item-sub" not-permission="@Policies.CanModifyStoreSettings">
|
|
<a asp-area="" asp-controller="UICrowdfund" asp-action="ViewCrowdfund" asp-route-appId="@app.Id" class="nav-link">
|
|
<span>@app.AppName</span>
|
|
</a>
|
|
</li>
|
|
}
|
|
}
|