@let policySections = policySections$ | async; @let policiesEnabledMap = policiesEnabledMap$ | async; @let organization = organization$ | async; @let drawerEnabled = useDrawer(); @if (listLoadError()) { {{ "vtPoliciesLoadError" | i18n }} } @else if (!policySections || !policiesEnabledMap || !organization) { {{ "loading" | i18n }} } @else { @for (section of policySections; track section.category) {

{{ section.labelKey | i18n }}

@for (p of section.policies; track p.type) { @let name = (drawerEnabled && p.v2?.name ? p.v2.name : p.name) | i18n; @let status = policyStatus(p.type, policiesEnabledMap); @let statusLabel = (status === "unavailable" ? "vtPolicyUnavailable" : status) | i18n; @let described = !restatingDescriptions.has(p.description); @let descriptionId = "vt-policy-desc-" + p.type; @let statusId = "vt-policy-status-" + p.type;
@if (status === "unavailable") { {{ name }} } @else { } @if (described) { {{ (drawerEnabled && p.v2?.description ? p.v2.description : p.description) | i18n }} }
{{ statusLabel }}
}
} }