1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

toggle uri options

This commit is contained in:
Kyle Spearrin 2018-03-02 08:15:55 -05:00
parent 72771d4b90
commit 295068a30c
4 changed files with 17 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit 6aef18ee7f54fc5cfb042206eb27e76f2458b60a
Subproject commit 20389402fc6610ffeaa003cfc663a41dc1061100

View File

@ -193,10 +193,17 @@
<label for="loginUriMatch{{i}}" class="sr-only">
{{'autofillDetection' | i18n}} {{(i + 1)}}
</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>
</select>
</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>
</ng-container>
<a href="#" appStopClick appBlurClick (click)="addUri()" class="box-content-row">

View File

@ -256,6 +256,11 @@ export class AddEditComponent implements OnChanges {
f.showValue = !f.showValue;
}
toggleUriOptions(uri: LoginUriView) {
const u = (uri as any);
u.showOptions = !u.showOptions;
}
async checkPassword() {
if (this.cipher.login == null || this.cipher.login.password == null || this.cipher.login.password === '') {
return;

View File

@ -1006,5 +1006,8 @@
"defaultAutofillDetection": {
"message": "Default auto-fill detection",
"description": "Default URI auto-fill match detection."
},
"toggleOptions": {
"message": "Toggle Options"
}
}