1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 17:53:39 +00:00

[AC 2413] migrate policies component (#8692)

* migrate policies component

* migrate policies component
This commit is contained in:
vinith-kovan
2024-05-21 23:27:29 +05:30
committed by GitHub
parent 5075d0865e
commit 644fe9a5b0

View File

@@ -3,24 +3,24 @@
<bit-container> <bit-container>
<ng-container *ngIf="loading"> <ng-container *ngIf="loading">
<i <i
class="bwi bwi-spinner bwi-spin text-muted" class="bwi bwi-spinner bwi-spin tw-text-muted"
title="{{ 'loading' | i18n }}" title="{{ 'loading' | i18n }}"
aria-hidden="true" aria-hidden="true"
></i> ></i>
<span class="sr-only">{{ "loading" | i18n }}</span> <span class="tw-sr-only">{{ "loading" | i18n }}</span>
</ng-container> </ng-container>
<table class="table table-hover table-list" *ngIf="!loading"> <bit-table *ngIf="!loading">
<tbody> <ng-template body>
<tr *ngFor="let p of policies"> <tr bitRow *ngFor="let p of policies">
<td *ngIf="p.display(organization)"> <td bitCell *ngIf="p.display(organization)">
<a href="#" appStopClick (click)="edit(p)">{{ p.name | i18n }}</a> <button type="button" bitLink (click)="edit(p)">{{ p.name | i18n }}</button>
<span bitBadge variant="success" *ngIf="policiesEnabledMap.get(p.type)">{{ <span bitBadge variant="success" *ngIf="policiesEnabledMap.get(p.type)">{{
"on" | i18n "on" | i18n
}}</span> }}</span>
<small class="text-muted d-block">{{ p.description | i18n }}</small> <small class="tw-text-muted tw-block">{{ p.description | i18n }}</small>
</td> </td>
</tr> </tr>
</tbody> </ng-template>
</table> </bit-table>
<ng-template #editTemplate></ng-template> <ng-template #editTemplate></ng-template>
</bit-container> </bit-container>