1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

[PM-9190] Browser Refresh - Autofill section fixes (#10488)

* [PM-10751] Add count to website URI label

* [PM-10752] Hide autofill on page load field when the setting is disabled

* [PM-10790] Fix bottom margin
This commit is contained in:
Shane Melton
2024-08-13 08:58:16 -07:00
committed by GitHub
parent 471dd3bd7b
commit 7ad42ae18b
7 changed files with 53 additions and 3 deletions

View File

@@ -89,6 +89,11 @@ export class UriOptionComponent implements ControlValueAccessor {
);
}
/**
* The index of the URI in the form. Used to render the correct label.
*/
@Input({ required: true }) index: number;
/**
* Emits when the remove button is clicked and URI should be removed from the form.
*/
@@ -104,6 +109,12 @@ export class UriOptionComponent implements ControlValueAccessor {
}
}
protected get uriLabel() {
return this.index === 0
? this.i18nService.t("websiteUri")
: this.i18nService.t("websiteUriCount", this.index + 1);
}
protected get toggleTitle() {
return this.showMatchDetection
? this.i18nService.t("hideMatchDetection", this.uriForm.value.uri)