mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
loginUriMatchChanged
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 913336280a...848f50afe7
@@ -194,7 +194,8 @@
|
|||||||
{{'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 === 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>
|
<option *ngFor="let o of uriMatchOptions" [ngValue]="o.value">{{o.name}}</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -261,6 +261,11 @@ export class AddEditComponent implements OnChanges {
|
|||||||
u.showOptions = u.showOptions == null && uri.match != null ? false : !u.showOptions;
|
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() {
|
async checkPassword() {
|
||||||
if (this.cipher.login == null || this.cipher.login.password == null || this.cipher.login.password === '') {
|
if (this.cipher.login == null || this.cipher.login.password == null || this.cipher.login.password === '') {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user