1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

[PM-9190] Edit Login - Autofill Options (#10274)

* [PM-8524] Update appA11yTitle to keep attributes in sync after first render

* [PM-8524] Introduce UriOptionComponent

* [PM-9190] Introduce AutofillOptionsComponent

* [PM-9190] Add AutofillOptions to LoginDetailsSection

* [PM-9190] Add autofill options component unit tests

* [PM-9190] Add UriOptionComponent unit tests

* [PM-9190] Add missing translations

* [PM-9190] Add autofill on page load field

* [PM-9190] Ensure updatedCipherView is completely separate from originalCipherView

* [CL-348] Do not override items if there are no OptionComponents available

* [PM-9190] Mock AutoFillOptions component in Login Details tests

* [PM-9190] Cleanup storybook and missing web translations

* [PM-9190] Ensure storybook decryptCipher returns a separate object
This commit is contained in:
Shane Melton
2024-08-01 08:35:04 -07:00
committed by GitHub
parent ffc9022f54
commit 0d76835cd8
17 changed files with 912 additions and 7 deletions

View File

@@ -0,0 +1,36 @@
<bit-section [formGroup]="autofillOptionsForm">
<bit-section-header>
<h2 bitTypography="h5">
{{ "autofillOptions" | i18n }}
</h2>
</bit-section-header>
<bit-card>
<ng-container formArrayName="uris">
<vault-autofill-uri-option
*ngFor="let uri of uriControls; let i = index"
[formControlName]="i"
(remove)="removeUri(i)"
[canRemove]="uriControls.length > 1"
[defaultMatchDetection]="defaultMatchDetection$ | async"
></vault-autofill-uri-option>
</ng-container>
<button
type="button"
bitLink
linkType="primary"
class="tw-mb-6"
(click)="addUri({ uri: null, matchDetection: null }, true)"
*ngIf="autofillOptionsForm.enabled"
>
<i class="bwi bwi-plus tw-font-bold" aria-hidden="true"></i>
{{ "addWebsite" | i18n }}
</button>
<bit-form-field>
<bit-label>{{ "autoFillOnPageLoad" | i18n }}</bit-label>
<bit-select formControlName="autofillOnPageLoad" [items]="autofillOptions"></bit-select>
</bit-form-field>
</bit-card>
</bit-section>