mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
default options to show if match has a value set
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 20389402fc...dc0befc9be
@@ -194,7 +194,7 @@
|
|||||||
{{'autofillDetection' | i18n}} {{(i + 1)}}
|
{{'autofillDetection' | i18n}} {{(i + 1)}}
|
||||||
</label>
|
</label>
|
||||||
<select id="loginUriMatch{{i}}" name="Login.Uris[{{i}}].Match" [(ngModel)]="u.match"
|
<select id="loginUriMatch{{i}}" name="Login.Uris[{{i}}].Match" [(ngModel)]="u.match"
|
||||||
[hidden]="!u.showOptions">
|
[hidden]="u.showOptions === false || (u.showOptions == null && u.match == null)">
|
||||||
<option *ngFor="let o of uriMatchOptions" [ngValue]="o.value">{{o.name}}</option>
|
<option *ngFor="let o of uriMatchOptions" [ngValue]="o.value">{{o.name}}</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -258,7 +258,7 @@ export class AddEditComponent implements OnChanges {
|
|||||||
|
|
||||||
toggleUriOptions(uri: LoginUriView) {
|
toggleUriOptions(uri: LoginUriView) {
|
||||||
const u = (uri as any);
|
const u = (uri as any);
|
||||||
u.showOptions = !u.showOptions;
|
u.showOptions = u.showOptions == null && uri.match != null ? false : !u.showOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
async checkPassword() {
|
async checkPassword() {
|
||||||
|
|||||||
Reference in New Issue
Block a user