1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-24 11:55:50 +01:00

loginUriMatchChanged

This commit is contained in:
Kyle Spearrin 2018-03-03 22:55:33 -05:00
parent d106ec6179
commit b3d21c6f17
3 changed files with 8 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit 913336280a1acab058ff9a9d6c3ea47235d9d2ee
Subproject commit 848f50afe7b9dc9e193a036c062ef2f0e4d93018

View File

@ -194,7 +194,8 @@
{{'autofillDetection' | i18n}} {{(i + 1)}}
</label>
<select id="loginUriMatch{{i}}" name="Login.Uris[{{i}}].Match" [(ngModel)]="u.match"
[hidden]="u.showOptions === false || (u.showOptions == null && u.match == null)">
[hidden]="u.showOptions === false || (u.showOptions == null && u.match == null)"
(change)="loginUriMatchChanged(u)">
<option *ngFor="let o of uriMatchOptions" [ngValue]="o.value">{{o.name}}</option>
</select>
</div>

View File

@ -261,6 +261,11 @@ export class AddEditComponent implements OnChanges {
u.showOptions = u.showOptions == null && uri.match != null ? false : !u.showOptions;
}
loginUriMatchChanged(uri: LoginUriView) {
const u = (uri as any);
u.showOptions = u.showOptions == null ? true : u.showOptions;
}
async checkPassword() {
if (this.cipher.login == null || this.cipher.login.password == null || this.cipher.login.password === '') {
return;