mirror of
https://github.com/bitwarden/browser
synced 2026-01-18 16:33:47 +00:00
* Update AccountService to include a method for setting the managedByOrganizationId * Update AccountComponent to conditionally show the purgeVault button based on a feature flag and if the user is managed by an organization * Add missing method to FakeAccountService * Remove the setAccountManagedByOrganizationId method from the AccountService abstract class. * Refactor AccountComponent to use OrganizationService to check for managing organization * Rename managesActiveUser to userIsManagedByOrganization * Hide the change email section if the user is managed by an organization * Refactor userIsManagedByOrganization property to be non-nullable in organization data and response models * Refactor organization.data.spec.ts to include non-nullable userIsManagedByOrganization property * Refactor account component to conditionally show delete account button based on user's organization management status * Add showDeleteAccount$ observable to AccountComponent
39 lines
1014 B
HTML
39 lines
1014 B
HTML
<app-header></app-header>
|
|
|
|
<bit-container>
|
|
<app-profile></app-profile>
|
|
|
|
<div *ngIf="showChangeEmail$ | async" class="tw-mt-16">
|
|
<h1 bitTypography="h1">{{ "changeEmail" | i18n }}</h1>
|
|
<app-change-email></app-change-email>
|
|
</div>
|
|
|
|
<app-danger-zone>
|
|
<button type="button" bitButton buttonType="danger" (click)="deauthorizeSessions()">
|
|
{{ "deauthorizeSessions" | i18n }}
|
|
</button>
|
|
<button
|
|
*ngIf="showPurgeVault$ | async"
|
|
type="button"
|
|
bitButton
|
|
buttonType="danger"
|
|
[bitAction]="purgeVault"
|
|
>
|
|
{{ "purgeVault" | i18n }}
|
|
</button>
|
|
<button
|
|
*ngIf="showDeleteAccount$ | async"
|
|
type="button"
|
|
bitButton
|
|
buttonType="danger"
|
|
[bitAction]="deleteAccount"
|
|
>
|
|
{{ "deleteAccount" | i18n }}
|
|
</button>
|
|
</app-danger-zone>
|
|
|
|
<ng-template #deauthorizeSessionsTemplate></ng-template>
|
|
<ng-template #viewUserApiKeyTemplate></ng-template>
|
|
<ng-template #rotateUserApiKeyTemplate></ng-template>
|
|
</bit-container>
|