From 574891d6178c07c5c1672b0dd8ec3a63b413f3c1 Mon Sep 17 00:00:00 2001 From: Daniel James Smith <2670567+djsmith85@users.noreply.github.com> Date: Wed, 7 May 2025 16:53:57 +0200 Subject: [PATCH] [PM-16132][16249] Custom hidden field missing color and character count toggle (#13402) * Add colored characters to custom hidden field * Add character count toggle to hidden field * Check correct variable for revealed hidden field * Merge branch 'main' into vault/pm-16132/custom-hidden-field-missing-color-and-character-count-toggle * Toggle character count on per field basis --------- Co-authored-by: Daniel James Smith Co-authored-by: bnagawiecki <107435978+bnagawiecki@users.noreply.github.com> Co-authored-by: Leslie Tilton <23057410+Banrion@users.noreply.github.com> --- .../custom-fields-v2.component.html | 20 +++++++++++++++++++ .../custom-fields-v2.component.ts | 16 +++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/libs/vault/src/cipher-view/custom-fields/custom-fields-v2.component.html b/libs/vault/src/cipher-view/custom-fields/custom-fields-v2.component.html index b71851ef6c9..2492ed0cd81 100644 --- a/libs/vault/src/cipher-view/custom-fields/custom-fields-v2.component.html +++ b/libs/vault/src/cipher-view/custom-fields/custom-fields-v2.component.html @@ -51,6 +51,20 @@ class="tw-font-mono" vaultAutosizeReadOnlyTextArea > + +
+ +
-1) { + this.showHiddenValueCountFields.splice(fieldIndex, 1); + } else { + this.showHiddenValueCountFields.push(index); + } + } + async toggleHiddenField(hiddenFieldVisible: boolean, index: number) { if (hiddenFieldVisible) { this.revealedHiddenFields.push(index);