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

remove user match strategy on the web (#11385)

This commit is contained in:
Nick Krantz
2024-10-08 10:53:20 -05:00
committed by GitHub
parent 2c8f09d547
commit 22b16b20a7
4 changed files with 24 additions and 2 deletions

View File

@@ -83,6 +83,11 @@ export class UriOptionComponent implements ControlValueAccessor {
*/
@Input({ required: true })
set defaultMatchDetection(value: UriMatchStrategySetting) {
// The default selection has a value of `null` avoid showing "Default (Default)"
if (!value) {
return;
}
this.uriMatchOptions[0].label = this.i18nService.t(
"defaultLabel",
this.uriMatchOptions.find((o) => o.value === value)?.label,