mirror of
https://github.com/bitwarden/browser
synced 2026-03-02 11:31:44 +00:00
* WIP * switch to signal * fix ts strict errors * clean up * refactor policy list service * implement vnext component * refactor to include feature flag check in display() * CR feedback * refactor submit to cancel before request is built * clean up * Fix typo --------- Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
46 lines
1.2 KiB
HTML
46 lines
1.2 KiB
HTML
<app-header>
|
|
@let organization = organization$ | async;
|
|
@if (isBreadcrumbingEnabled$ | async) {
|
|
<button
|
|
bitBadge
|
|
class="!tw-align-middle"
|
|
(click)="changePlan(organization)"
|
|
slot="title-suffix"
|
|
type="button"
|
|
variant="primary"
|
|
>
|
|
{{ "upgrade" | i18n }}
|
|
</button>
|
|
}
|
|
</app-header>
|
|
|
|
<bit-container>
|
|
@if (loading) {
|
|
<i
|
|
class="bwi bwi-spinner bwi-spin tw-text-muted"
|
|
title="{{ 'loading' | i18n }}"
|
|
aria-hidden="true"
|
|
></i>
|
|
<span class="tw-sr-only">{{ "loading" | i18n }}</span>
|
|
}
|
|
@if (!loading) {
|
|
<bit-table>
|
|
<ng-template body>
|
|
@for (p of policies; track p.name) {
|
|
@if (p.display(organization, configService) | async) {
|
|
<tr bitRow>
|
|
<td bitCell ngPreserveWhitespaces>
|
|
<button type="button" bitLink (click)="edit(p)">{{ p.name | i18n }}</button>
|
|
@if (policiesEnabledMap.get(p.type)) {
|
|
<span bitBadge variant="success">{{ "on" | i18n }}</span>
|
|
}
|
|
<small class="tw-text-muted tw-block">{{ p.description | i18n }}</small>
|
|
</td>
|
|
</tr>
|
|
}
|
|
}
|
|
</ng-template>
|
|
</bit-table>
|
|
}
|
|
</bit-container>
|