mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
Allow editing of newly added fields
This commit is contained in:
parent
7ed7321219
commit
426e0edfb5
@ -403,11 +403,11 @@
|
|||||||
<input id="fieldValue{{i}}" type="{{f.showValue ? 'text' : 'password'}}"
|
<input id="fieldValue{{i}}" type="{{f.showValue ? 'text' : 'password'}}"
|
||||||
name="Field.Value{{i}}" [(ngModel)]="f.value"
|
name="Field.Value{{i}}" [(ngModel)]="f.value"
|
||||||
class="form-control text-monospace" appInputVerbatim
|
class="form-control text-monospace" appInputVerbatim
|
||||||
autocomplete="new-password" [disabled]="cipher.isDeleted || !cipher.viewPassword">
|
autocomplete="new-password" [disabled]="cipher.isDeleted || (!cipher.viewPassword && !f.newField)">
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button type="button" class="btn btn-outline-secondary"
|
<button type="button" class="btn btn-outline-secondary"
|
||||||
appA11yTitle="{{'toggleVisibility' | i18n}}" (click)="toggleFieldValue(f)"
|
appA11yTitle="{{'toggleVisibility' | i18n}}" (click)="toggleFieldValue(f)"
|
||||||
tabindex="-1" [disabled]="!cipher.viewPassword">
|
tabindex="-1" [disabled]="!cipher.viewPassword && !f.newField">
|
||||||
<i class="fa fa-lg" aria-hidden="true"
|
<i class="fa fa-lg" aria-hidden="true"
|
||||||
[ngClass]="{'fa-eye': !f.showValue, 'fa-eye-slash': f.showValue}">
|
[ngClass]="{'fa-eye': !f.showValue, 'fa-eye-slash': f.showValue}">
|
||||||
</i>
|
</i>
|
||||||
@ -415,7 +415,7 @@
|
|||||||
<button type="button" class="btn btn-outline-secondary"
|
<button type="button" class="btn btn-outline-secondary"
|
||||||
appA11yTitle="{{'copyValue' | i18n}}"
|
appA11yTitle="{{'copyValue' | i18n}}"
|
||||||
(click)="copy(f.value, 'value', f.type === fieldType.Hidden ? 'H_Field' : 'Field')"
|
(click)="copy(f.value, 'value', f.type === fieldType.Hidden ? 'H_Field' : 'Field')"
|
||||||
tabindex="-1" [disabled]="!cipher.viewPassword">
|
tabindex="-1" [disabled]="!cipher.viewPassword && !f.newField">
|
||||||
<i class="fa fa-lg fa-clipboard" aria-hidden="true"></i>
|
<i class="fa fa-lg fa-clipboard" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user