mirror of
https://github.com/bitwarden/browser
synced 2026-02-27 18:13:29 +00:00
* Enhance policy edit dialogs by updating dialog size to large for improved layout and switching to openDrawer method for better user experience. * Enhance policy edit dialogs by adding policy status badges to indicate if a policy is enabled, improving user visibility and experience. * Update dialog component styles to enhance drawer behavior by changing height to full screen and adding sticky footer for improved layout and user experience. * Refactor policy display layout by wrapping buttons and badges in a flex container for improved alignment and spacing. * Refactor password policy forms in admin console for improved layout - Simplified the structure of form fields in `master-password.component.html` and `password-generator.component.html` by removing unnecessary div wrappers. - Updated the label for the password type policy override in `messages.json` for clarity. * Update dialog size in policy edit component for consistency - Changed the dialog size from 'large' to 'default' in `policy-edit-dialog.component.html` to align with design standards. * refactor(dialog): update dialog component styles for drawer layout - Adjusted height class for drawer dialogs from 'tw-h-screen' to 'tw-h-full' for better layout management. - Removed sticky positioning for footer in drawer mode to improve visual consistency. * refactor(dialog): enhance form layout for policy edit dialogs - Added classes for full height and flex column layout to the form elements in policy edit dialogs for improved visual consistency and usability.
39 lines
1.3 KiB
HTML
39 lines
1.3 KiB
HTML
<app-header></app-header>
|
|
|
|
@let organization = organization$ | async;
|
|
@let policiesEnabledMap = policiesEnabledMap$ | async;
|
|
@let organizationId = organizationId$ | async;
|
|
|
|
<bit-container>
|
|
@if (!organization || !policiesEnabledMap || !organizationId) {
|
|
<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>
|
|
} @else {
|
|
<bit-table>
|
|
<ng-template body>
|
|
@for (p of policies$ | async | policyOrder; track $index) {
|
|
@if (p.display$(organization, configService) | async) {
|
|
<tr bitRow>
|
|
<td bitCell ngPreserveWhitespaces>
|
|
<div class="tw-flex tw-items-center tw-gap-2">
|
|
<button type="button" bitLink (click)="edit(p, organizationId)">
|
|
{{ p.name | i18n }}
|
|
</button>
|
|
@if (policiesEnabledMap.get(p.type)) {
|
|
<span bitBadge variant="success">{{ "on" | i18n }}</span>
|
|
}
|
|
</div>
|
|
<small class="tw-text-muted tw-block">{{ p.description | i18n }}</small>
|
|
</td>
|
|
</tr>
|
|
}
|
|
}
|
|
</ng-template>
|
|
</bit-table>
|
|
}
|
|
</bit-container>
|