1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 07:13:32 +00:00

use valueLabel with appCopyClick directive (#11718)

* add `valueLabel` to `appCopyClick` directives 
* move generated value description to the configuration
This commit is contained in:
✨ Audrey ✨
2024-10-25 17:43:49 -04:00
committed by GitHub
parent 5f0755d74d
commit c780cbc77e
10 changed files with 46 additions and 4 deletions

View File

@@ -468,6 +468,14 @@ export class CredentialGeneratorComponent implements OnInit, OnDestroy {
map(({ generate }) => generate),
);
/**
* Emits the copy credential toast respective of the selected credential type
*/
protected credentialTypeLabel$ = this.algorithm$.pipe(
filter((algorithm) => !!algorithm),
map(({ generatedValue }) => generatedValue),
);
/** Emits hint key for the currently selected credential type */
protected credentialTypeHint$ = new ReplaySubject<string>(1);