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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user