mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-06 09:20:43 +01:00
loginUriMatchChanged
This commit is contained in:
parent
d106ec6179
commit
b3d21c6f17
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit 913336280a1acab058ff9a9d6c3ea47235d9d2ee
|
||||
Subproject commit 848f50afe7b9dc9e193a036c062ef2f0e4d93018
|
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user