mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
fix generate a11y binding (#11671)
This commit is contained in:
@@ -456,7 +456,7 @@ export class CredentialGeneratorComponent implements OnInit, OnDestroy {
|
|||||||
*/
|
*/
|
||||||
protected credentialTypeGenerateLabel$ = this.algorithm$.pipe(
|
protected credentialTypeGenerateLabel$ = this.algorithm$.pipe(
|
||||||
filter((algorithm) => !!algorithm),
|
filter((algorithm) => !!algorithm),
|
||||||
map(({ copy }) => copy),
|
map(({ generate }) => generate),
|
||||||
);
|
);
|
||||||
|
|
||||||
/** Emits hint key for the currently selected credential type */
|
/** Emits hint key for the currently selected credential type */
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ export class PasswordGeneratorComponent implements OnInit, OnDestroy {
|
|||||||
*/
|
*/
|
||||||
protected credentialTypeGenerateLabel$ = this.algorithm$.pipe(
|
protected credentialTypeGenerateLabel$ = this.algorithm$.pipe(
|
||||||
filter((algorithm) => !!algorithm),
|
filter((algorithm) => !!algorithm),
|
||||||
map(({ copy }) => copy),
|
map(({ generate }) => generate),
|
||||||
);
|
);
|
||||||
|
|
||||||
private toOptions(algorithms: AlgorithmInfo[]) {
|
private toOptions(algorithms: AlgorithmInfo[]) {
|
||||||
|
|||||||
@@ -378,7 +378,7 @@ export class UsernameGeneratorComponent implements OnInit, OnDestroy {
|
|||||||
*/
|
*/
|
||||||
protected credentialTypeGenerateLabel$ = this.algorithm$.pipe(
|
protected credentialTypeGenerateLabel$ = this.algorithm$.pipe(
|
||||||
filter((algorithm) => !!algorithm),
|
filter((algorithm) => !!algorithm),
|
||||||
map(({ copy }) => copy),
|
map(({ generate }) => generate),
|
||||||
);
|
);
|
||||||
|
|
||||||
/** Emits hint key for the currently selected credential type */
|
/** Emits hint key for the currently selected credential type */
|
||||||
|
|||||||
Reference in New Issue
Block a user