BEEEP: Colorize hidden custom field when value visible

This commit is contained in:
Daniel James Smith 2022-02-25 13:27:24 +01:00
parent 2f289ebd1f
commit 6de23ec9a4
No known key found for this signature in database
GPG Key ID: 03E4BD365FF06726
1 changed files with 5 additions and 1 deletions

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">