mirror of
https://github.com/bitwarden/browser.git
synced 2024-08-25 23:03:07 +02:00
Masking Card Security Code in browser extension (#647)
Desktop Issue #78 (CreditCard Security Code is visible)
This commit is contained in:
parent
2033e46683
commit
91eb676cf5
|
@ -111,9 +111,15 @@
|
||||||
<div class="box-content-row box-content-row-flex" *ngIf="cipher.card.code">
|
<div class="box-content-row box-content-row-flex" *ngIf="cipher.card.code">
|
||||||
<div class="row-main">
|
<div class="row-main">
|
||||||
<span class="row-label">{{'securityCode' | i18n}}</span>
|
<span class="row-label">{{'securityCode' | i18n}}</span>
|
||||||
{{cipher.card.code}}
|
<span [hidden]="showCardCode" >{{cipher.card.maskedCode}}</span>
|
||||||
|
<span [hidden]="!showCardCode" >{{cipher.card.code}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="action-buttons">
|
<div class="action-buttons">
|
||||||
|
<a class="row-btn" href="#" appStopClick title="{{'toggleVisibility' | i18n}}"
|
||||||
|
(click)="toggleCardCode()">
|
||||||
|
<i class="fa fa-lg"
|
||||||
|
[ngClass]="{'fa-eye': !showCardCode, 'fa-eye-slash': showCardCode}"></i>
|
||||||
|
</a>
|
||||||
<a class="row-btn" href="#" appStopClick title="{{'copySecurityCode' | i18n}}"
|
<a class="row-btn" href="#" appStopClick title="{{'copySecurityCode' | i18n}}"
|
||||||
(click)="copy(cipher.card.code, 'securityCode', 'Security Code')">
|
(click)="copy(cipher.card.code, 'securityCode', 'Security Code')">
|
||||||
<i class="fa fa-lg fa-clipboard"></i>
|
<i class="fa fa-lg fa-clipboard"></i>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user