mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
Adding mask and toggle for Card Security Code (#5)
* Adding mask and toggle for Card Security Code * For Card Code Mask - show same number of characters as code
This commit is contained in:
committed by
Kyle Spearrin
parent
cfad521ea8
commit
1ab6ce6ec0
@@ -18,6 +18,10 @@ export class CardView implements View {
|
||||
// ctor
|
||||
}
|
||||
|
||||
get maskedCode(): string {
|
||||
return this.code != null ? '•'.repeat(this.code.length) : null;
|
||||
}
|
||||
|
||||
get brand(): string {
|
||||
return this._brand;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user