From 9da80a6cbae6de1be27944b2c50e21c924191302 Mon Sep 17 00:00:00 2001 From: Alec Rippberger <127791530+alec-livefront@users.noreply.github.com> Date: Mon, 28 Oct 2024 16:12:57 -0500 Subject: [PATCH] [PM-8115] Desktop, Extension UI Refresh: Self-hosted Setup Dialog (#11597) * Reimplement RegistrationSelfHostedEnvConfigDialogComponent * Update EnvironmentSelectorComponent text based on feature flag. * Initialize RegistrationSelfHostedEnvConfigDialog with existing values if self hosted * Cleanup debug * Add comment * Remove changes to home and login components * Remove changes to desktop login component * Remove changes to browser home component * Simplify accessing string. * Add environment selector service. * Cleanup unused imports in environment-selector * Launch new env selector dialog from desktop * Fix lint errors * Address PR feedback: move dialog component, remove EnvironmentSelectorService, remove unused translation string * Remove changes to AnonLayout * PM-8115 - Export Re-usable component from Libs/auth for clean import elsewhere in clients. * Remove unused accessingString variable * Add success toast --------- Co-authored-by: Jared Snider --- apps/browser/src/_locales/en/messages.json | 3 -- apps/desktop/src/locales/en/messages.json | 3 -- .../environment-selector.component.html | 2 +- .../environment-selector.component.ts | 33 ++++++++++++++-- libs/auth/src/angular/index.ts | 3 ++ .../registration-env-selector.component.ts | 6 +-- ...f-hosted-env-config-dialog.component.html} | 0 ...elf-hosted-env-config-dialog.component.ts} | 38 ++++++++++++++++--- 8 files changed, 67 insertions(+), 21 deletions(-) rename libs/auth/src/angular/{registration/registration-env-selector/registration-self-hosted-env-config-dialog.component.html => self-hosted-env-config-dialog/self-hosted-env-config-dialog.component.html} (100%) rename libs/auth/src/angular/{registration/registration-env-selector/registration-self-hosted-env-config-dialog.component.ts => self-hosted-env-config-dialog/self-hosted-env-config-dialog.component.ts} (77%) diff --git a/apps/browser/src/_locales/en/messages.json b/apps/browser/src/_locales/en/messages.json index 0e4c0da245..92fabdae3e 100644 --- a/apps/browser/src/_locales/en/messages.json +++ b/apps/browser/src/_locales/en/messages.json @@ -3234,9 +3234,6 @@ } } }, - "loggingInOn": { - "message": "Logging in on" - }, "opensInANewWindow": { "message": "Opens in a new window" }, diff --git a/apps/desktop/src/locales/en/messages.json b/apps/desktop/src/locales/en/messages.json index 414f254e7a..83aaf2157d 100644 --- a/apps/desktop/src/locales/en/messages.json +++ b/apps/desktop/src/locales/en/messages.json @@ -2804,9 +2804,6 @@ "message": "EU", "description": "European Union" }, - "loggingInOn": { - "message": "Logging in on" - }, "selfHostedServer": { "message": "self-hosted" }, diff --git a/libs/angular/src/auth/components/environment-selector.component.html b/libs/angular/src/auth/components/environment-selector.component.html index 673f647984..6a93e2a221 100644 --- a/libs/angular/src/auth/components/environment-selector.component.html +++ b/libs/angular/src/auth/components/environment-selector.component.html @@ -4,7 +4,7 @@ } as data" >
- {{ "loggingInOn" | i18n }}: + {{ "accessing" | i18n }}: