1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

[PM-17688] - generator dialog - add missing button label i18n keys. fix logic for disabling button (#13140)

* add missing button label i18n keys. fix logic for displaying button label

* Update comment

Co-authored-by:  Audrey  <ajensen@bitwarden.com>

---------

Co-authored-by:  Audrey  <ajensen@bitwarden.com>
This commit is contained in:
Jordan Aasen
2025-01-29 14:06:03 -08:00
committed by GitHub
parent d09de817c3
commit 4b45029d23
7 changed files with 22 additions and 6 deletions

View File

@@ -2,11 +2,11 @@
*ngIf="type === 'password'"
[disableMargin]="disableMargin"
(onGenerated)="onCredentialGenerated($event)"
(onAlgorithm)="algorithm($event)"
(onAlgorithm)="onAlgorithmSelected($event)"
></tools-password-generator>
<tools-username-generator
*ngIf="type === 'username'"
[disableMargin]="disableMargin"
(onGenerated)="onCredentialGenerated($event)"
(onAlgorithm)="algorithm($event)"
(onAlgorithm)="onAlgorithmSelected($event)"
></tools-username-generator>

View File

@@ -19,7 +19,7 @@ import { AlgorithmInfo, GeneratedCredential } from "@bitwarden/generator-core";
})
export class CipherFormGeneratorComponent {
@Input()
algorithm: (selected: AlgorithmInfo) => void;
onAlgorithmSelected: (selected: AlgorithmInfo) => void;
/**
* The type of generator form to show.