@using BTCPayServer.Client @using BTCPayServer.Views.Server @using Microsoft.AspNetCore.Mvc.TagHelpers @using BTCPayServer.Abstractions.TagHelpers @using BTCPayServer.Controllers @using BTCPayServer.Views.Stores @model UpdateRoleViewModel @{ var role = Context.GetRouteValue("role") as string; if (role == "create") role = null; var storeId = Context.GetRouteValue("storeId") as string; var title = role is null ? StringLocalizer["Create role"] : StringLocalizer["Update Role"]; var category = storeId is null ? WellKnownCategories.Server : WellKnownCategories.Store; ViewData.SetLayoutModel(new LayoutModel(nameof(StoreNavPages.Roles), title).SetCategory(category)); var storePolicies = Policies.AllPolicies.Where(Policies.IsStorePolicy).ToArray(); }
@{ void RenderTree(KeyValuePair@UIManageController.AddApiKeyViewModel.PermissionValueItem.PermissionDescriptions[policy.Key].Description
@if (policy.Value?.Any() is true) {