mirror of
https://github.com/bitwarden/browser
synced 2026-02-10 05:30:01 +00:00
Updates the InputPasswordComponent so that it can eventually be used in multiple set/change password scenarios. Most importantly, this PR adds an InputPasswordFlow enum and @Input so that parent components can dictate which UI elements to show.
24 lines
771 B
HTML
24 lines
771 B
HTML
<ng-container *ngIf="syncLoading">
|
|
<i class="bwi bwi-spinner bwi-spin tw-mr-2" title="{{ 'loading' | i18n }}" aria-hidden="true"></i>
|
|
{{ "loading" | i18n }}
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="!syncLoading">
|
|
<app-callout
|
|
type="warning"
|
|
title="{{ 'resetPasswordPolicyAutoEnroll' | i18n }}"
|
|
*ngIf="resetPasswordAutoEnroll"
|
|
>
|
|
{{ "resetPasswordAutoEnrollInviteWarning" | i18n }}
|
|
</app-callout>
|
|
|
|
<auth-input-password
|
|
[inputPasswordFlow]="InputPasswordFlow.SetInitialPassword"
|
|
[primaryButtonText]="{ key: 'createAccount' }"
|
|
[email]="email"
|
|
[loading]="submitting"
|
|
[masterPasswordPolicyOptions]="masterPasswordPolicyOptions"
|
|
(onPasswordFormSubmit)="handlePasswordFormSubmit($event)"
|
|
></auth-input-password>
|
|
</ng-container>
|