1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-25 16:59:17 +01:00

Colorize hidden custom field when value visible (#2413)

This commit is contained in:
Daniel James Smith 2022-02-25 14:30:55 +01:00 committed by GitHub
parent 6f558e5554
commit b601ca78cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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