mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-24 11:55:50 +01:00
toggle uri options
This commit is contained in:
parent
72771d4b90
commit
295068a30c
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit 6aef18ee7f54fc5cfb042206eb27e76f2458b60a
|
Subproject commit 20389402fc6610ffeaa003cfc663a41dc1061100
|
@ -193,10 +193,17 @@
|
|||||||
<label for="loginUriMatch{{i}}" class="sr-only">
|
<label for="loginUriMatch{{i}}" class="sr-only">
|
||||||
{{'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">
|
||||||
<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>
|
||||||
|
<div class="action-buttons">
|
||||||
|
<a class="row-btn" href="#" appStopClick appBlurClick
|
||||||
|
title="{{'toggleOptions' | i18n}}" (click)="toggleUriOptions(u)">
|
||||||
|
<i class="fa fa-lg fa-cog"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<a href="#" appStopClick appBlurClick (click)="addUri()" class="box-content-row">
|
<a href="#" appStopClick appBlurClick (click)="addUri()" class="box-content-row">
|
||||||
|
@ -256,6 +256,11 @@ export class AddEditComponent implements OnChanges {
|
|||||||
f.showValue = !f.showValue;
|
f.showValue = !f.showValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
toggleUriOptions(uri: LoginUriView) {
|
||||||
|
const u = (uri as any);
|
||||||
|
u.showOptions = !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;
|
||||||
|
@ -1006,5 +1006,8 @@
|
|||||||
"defaultAutofillDetection": {
|
"defaultAutofillDetection": {
|
||||||
"message": "Default auto-fill detection",
|
"message": "Default auto-fill detection",
|
||||||
"description": "Default URI auto-fill match detection."
|
"description": "Default URI auto-fill match detection."
|
||||||
|
},
|
||||||
|
"toggleOptions": {
|
||||||
|
"message": "Toggle Options"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user