mirror of
https://github.com/bitwarden/web
synced 2025-12-10 21:33:16 +00:00
Add show hide password to send (#821)
* Add password toggle to add-edit * Fix remove password accessible from disabled send * Update jslib
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: deabffb7b0...22f576ea60
@@ -116,8 +116,17 @@
|
||||
<div class="col-6 form-group">
|
||||
<label for="password" *ngIf="!hasPassword">{{'password' | i18n}}</label>
|
||||
<label for="password" *ngIf="hasPassword">{{'newPassword' | i18n}}</label>
|
||||
<input id="password" class="form-control" type="password" name="Password"
|
||||
[(ngModel)]="password" [readOnly]="disableSend">
|
||||
<div class="input-group">
|
||||
<input id="password" class="form-control text-monospace" type="{{showPassword ? 'text' : 'password'}}"
|
||||
name="Password" [(ngModel)]="password" [readOnly]="disableSend">
|
||||
<div class="input-group-append">
|
||||
<button type="button" class="btn btn-outline-secondary" appA11yTitle="{{'toggleVisibility' | i18n}}"
|
||||
(click)="togglePasswordVisible()">
|
||||
<i class="fa fa-lg" aria-hidden="true"
|
||||
[ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-text text-muted small">{{'sendPasswordDesc' | i18n}}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
{{'copySendLink' | i18n}}
|
||||
</a>
|
||||
<a class="dropdown-item" href="#" appStopClick (click)="removePassword(s)"
|
||||
*ngIf="s.password">
|
||||
*ngIf="s.password && !disableSend">
|
||||
<i class="fa fa-fw fa-undo" aria-hidden="true"></i>
|
||||
{{'removePassword' | i18n}}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user