From 10a662cc356614fd721d46ff4cdda5519f997e4a Mon Sep 17 00:00:00 2001 From: Daniel James Smith <2670567+djsmith85@users.noreply.github.com> Date: Fri, 25 Oct 2024 18:15:48 +0200 Subject: [PATCH] [PM-14002] Fix username generator from vault item (#11714) * Fix "Forwarded email alias" not showing in drop-down * Fixed username and forwarder options not showing Options were being translated twice --------- Co-authored-by: Daniel James Smith --- .../generator/components/src/username-generator.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/tools/generator/components/src/username-generator.component.ts b/libs/tools/generator/components/src/username-generator.component.ts index 7ba4b254e9..5187a313d1 100644 --- a/libs/tools/generator/components/src/username-generator.component.ts +++ b/libs/tools/generator/components/src/username-generator.component.ts @@ -108,7 +108,7 @@ export class UsernameGeneratorComponent implements OnInit, OnDestroy { map((algorithms) => { const usernames = algorithms.filter((a) => !isForwarderIntegration(a.id)); const usernameOptions = this.toOptions(usernames); - usernameOptions.push({ value: FORWARDER, label: this.i18nService.t("forwarder") }); + usernameOptions.push({ value: FORWARDER, label: this.i18nService.t("forwardedEmail") }); const forwarders = algorithms.filter((a) => isForwarderIntegration(a.id)); const forwarderOptions = this.toOptions(forwarders); @@ -413,7 +413,7 @@ export class UsernameGeneratorComponent implements OnInit, OnDestroy { private toOptions(algorithms: AlgorithmInfo[]) { const options: Option[] = algorithms.map((algorithm) => ({ value: JSON.stringify(algorithm.id), - label: this.i18nService.t(algorithm.name), + label: algorithm.name, })); return options;