1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-24 11:55:50 +01:00

BEEEP: Colorize hidden custom field when value visible (#1380)

This commit is contained in:
Daniel James Smith 2022-02-25 14:27:54 +01:00 committed by GitHub
parent 2f289ebd1f
commit 8880e9700e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,11 @@
{{ field.value || " " }}
</div>
<div *ngIf="field.type === fieldType.Hidden">
<span *ngIf="field.showValue" class="monospaced show-whitespace">{{ field.value }}</span>
<span
*ngIf="field.showValue"
class="monospaced show-whitespace"
[innerHTML]="field.value | colorPassword"
></span>
<span *ngIf="!field.showValue" class="monospaced">{{ field.maskedValue }}</span>
</div>
<div *ngIf="field.type === fieldType.Boolean">