@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"]; if (storeId is null) ViewData.SetActivePage(ServerNavPages.Roles, title); else ViewData.SetActivePage(StoreNavPages.Roles, title, storeId); var storePolicies = Policies.AllPolicies.Where(Policies.IsStorePolicy).ToArray(); }
@{ void RenderTree(KeyValuePair@UIManageController.AddApiKeyViewModel.PermissionValueItem.PermissionDescriptions[policy.Key].Description
@if (policy.Value?.Any() is true) {