mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +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:
@@ -233,6 +233,14 @@ export class PasswordGeneratorComponent 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),
|
||||
);
|
||||
|
||||
private toOptions(algorithms: AlgorithmInfo[]) {
|
||||
const options: Option<CredentialAlgorithm>[] = algorithms.map((algorithm) => ({
|
||||
value: algorithm.id,
|
||||
|
||||
Reference in New Issue
Block a user