1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

default options to show if match has a value set

This commit is contained in:
Kyle Spearrin 2018-03-02 08:49:40 -05:00
parent 295068a30c
commit 59b8014c69
3 changed files with 3 additions and 3 deletions

2
jslib

@ -1 +1 @@
Subproject commit 20389402fc6610ffeaa003cfc663a41dc1061100
Subproject commit dc0befc9be805af687328b7f28c25f840b2aa733

View File

@ -194,7 +194,7 @@
{{'autofillDetection' | i18n}} {{(i + 1)}}
</label>
<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>
</select>
</div>

View File

@ -258,7 +258,7 @@ export class AddEditComponent implements OnChanges {
toggleUriOptions(uri: LoginUriView) {
const u = (uri as any);
u.showOptions = !u.showOptions;
u.showOptions = u.showOptions == null && uri.match != null ? false : !u.showOptions;
}
async checkPassword() {