diff --git a/client/src/locales/en-US.json b/client/src/locales/en-US.json index 74bcca5f6c4..65a16b97b1e 100644 --- a/client/src/locales/en-US.json +++ b/client/src/locales/en-US.json @@ -1211,12 +1211,13 @@ }, "clientArea": { "app": { - "titleLinkOrganization": "Link you customer account to your new organization", + "titleLinkOrganization": "Link your customer account to your new organization", "titleLogin": "Log in to your customer account", "emailLabel": "Email", "password": "Password", "forgottenPassword": "Forgot your password?", "login": "Log in", + "backButton": "Back", "saveLogin": "Remember me", "loginFailed": "Cannot log in. Please check your email and password.", "networkFailed": "Could not reach the server. Make sure that you are online and try again.", diff --git a/client/src/locales/fr-FR.json b/client/src/locales/fr-FR.json index d4c18894c25..7c1d804fe67 100644 --- a/client/src/locales/fr-FR.json +++ b/client/src/locales/fr-FR.json @@ -1217,6 +1217,7 @@ "password": "Mot de passe", "forgottenPassword": "Mot de passe oublié ?", "login": "Se connecter", + "backButton": "Retour", "saveLogin": "Se souvenir de moi", "loginFailed": "Impossible de se connecter. Veuillez vérifier votre email et mot de passe.", "networkFailed": "Impossible de contacter le serveur. Veuillez vérifier votre connexion à internet.", diff --git a/client/src/views/client-area/BmsLogin.vue b/client/src/views/client-area/BmsLogin.vue index 1883cd38288..b805fbbc3f1 100644 --- a/client/src/views/client-area/BmsLogin.vue +++ b/client/src/views/client-area/BmsLogin.vue @@ -107,8 +107,18 @@ - +
+ + + {{ $msTranslate('clientArea.app.backButton') }} + (); const emits = defineEmits<{ (e: 'loginSuccess', token: AuthenticationToken, personalInformation: PersonalInformationResultData): void; (e: 'closeRequested'): void; + (e: 'goBackRequested'): void; (e: 'forgottenPasswordClicked'): void; }>(); @@ -343,12 +355,18 @@ async function onLoginClicked(): Promise { display: flex; gap: 1rem; align-items: center; + justify-content: end; margin-top: 0.5rem; width: 100%; &__item { height: 2.5rem; border-radius: var(--parsec-radius-6); + border: 1px solid transparent; + + &:hover { + border: 1px solid var(--parsec-color-light-secondary-contrast); + } } .skeleton-login-button { diff --git a/client/src/views/organizations/creation/CreateOrganizationCustomServer.vue b/client/src/views/organizations/creation/CreateOrganizationCustomServer.vue index 5d668a9d646..87a13fe11b7 100644 --- a/client/src/views/organizations/creation/CreateOrganizationCustomServer.vue +++ b/client/src/views/organizations/creation/CreateOrganizationCustomServer.vue @@ -11,8 +11,9 @@ :disable-server-addr-field="bootstrapLink !== undefined" :disable-organization-name-field="bootstrapLink !== undefined" @organization-name-and-server-chosen="onOrganizationNameAndServerChosen" + @go-back-requested="$emit('backRequested')" @close-requested="$emit('closeRequested')" - :hide-previous="true" + :hide-previous="bootstrapLink !== undefined" /> (); diff --git a/client/src/views/organizations/creation/CreateOrganizationModal.vue b/client/src/views/organizations/creation/CreateOrganizationModal.vue index e48d17de5a5..de8d2d1dc00 100644 --- a/client/src/views/organizations/creation/CreateOrganizationModal.vue +++ b/client/src/views/organizations/creation/CreateOrganizationModal.vue @@ -14,18 +14,21 @@ :information-manager="informationManager" @close-requested="onCloseRequested" @organization-created="onOrganizationCreated" + @back-requested="onBackToServerChoice" />
@@ -103,6 +106,10 @@ async function onOrganizationCreated( : AccessStrategy.usePassword(device, (saveStrategy as DeviceSaveStrategyPassword).password); await modalController.dismiss({ device: device, access: accessStrategy }, MsModalResult.Confirm); } + +async function onBackToServerChoice(): Promise { + serverType.value = undefined; +}