diff --git a/client/src/locales/en-US.json b/client/src/locales/en-US.json index 8b47c9f0c27..6e0eeb0bdf7 100644 --- a/client/src/locales/en-US.json +++ b/client/src/locales/en-US.json @@ -1696,7 +1696,8 @@ "orders": { "new": { "title": "You need to create a new organization?", - "button": "New request" + "button": "New request", + "sent": "Your request has been sent." }, "request": { "title": "Request a new on-premise contract", @@ -1724,8 +1725,8 @@ "label": "Describe your needs", "placeholder": "Tell us more about your needs, expectations, and constraints..." }, - "connectionFailure": "Failed to contact the server.", - "serverFailure": "The server refused the request." + "connectionFailure": "An error occured (Failed to contact the server).", + "serverFailure": "An error occured (server request refused." } } }, diff --git a/client/src/locales/fr-FR.json b/client/src/locales/fr-FR.json index f42f88fa1c7..43418946150 100644 --- a/client/src/locales/fr-FR.json +++ b/client/src/locales/fr-FR.json @@ -1696,7 +1696,8 @@ "orders": { "new": { "title": "Vous avez besoin de créer une nouvelle organisation ?", - "button": "Nouvelle demande" + "button": "Nouvelle demande", + "sent": "Votre demande a bien été envoyée." }, "request": { "title": "Demande d'un contrat sur-mesure", @@ -1724,8 +1725,8 @@ "label": "Décrire vos besoins", "placeholder": "Dites-nous en plus sur vos besoins, vos attentes et vos contraintes..." }, - "connectionFailure": "Impossible de contacter le serveur.", - "serverFailure": "Le serveur a refuse la requête." + "connectionFailure": "Un problème est survenu (connexion au serveur impossible).", + "serverFailure": "Un problème est survenu (requête serveur refusée)." } } }, diff --git a/client/src/views/client-area/ClientAreaPage.vue b/client/src/views/client-area/ClientAreaPage.vue index c56b480d2da..af43bb3ad30 100644 --- a/client/src/views/client-area/ClientAreaPage.vue +++ b/client/src/views/client-area/ClientAreaPage.vue @@ -107,6 +107,7 @@ v-if="currentPage === ClientAreaPages.Orders" :organization="currentOrganization" @organization-selected="onOrganizationSelected" + :information-manager="informationManager" /> (''); const querying = ref(true); @@ -37,12 +39,23 @@ async function openNewOrderModal(): Promise { cssClass: 'new-order-modal', }); await modal.present(); - await modal.onWillDismiss(); + const { role } = await modal.onDidDismiss(); + await modal.dismiss(); + if (role === MsModalResult.Confirm) { + await props.informationManager.present( + new Information({ + message: 'clientArea.orders.new.sent', + level: InformationLevel.Success, + }), + PresentationMode.Toast, + ); + } await modal.dismiss(); } const props = defineProps<{ organization: BmsOrganization; + informationManager: InformationManager; }>(); onMounted(async () => { diff --git a/client/tests/e2e/specs/client_area_custom_order.spec.ts b/client/tests/e2e/specs/client_area_custom_order.spec.ts index 791623cbc8c..3523f925268 100644 --- a/client/tests/e2e/specs/client_area_custom_order.spec.ts +++ b/client/tests/e2e/specs/client_area_custom_order.spec.ts @@ -9,6 +9,7 @@ msTest('Test initial status', async ({ clientAreaCustomOrder }) => { const pages = [ { button: 'Contract', title: 'Contract', url: 'contracts' }, { button: 'Statistics', title: 'Statistics', url: 'custom-order-statistics' }, + { button: 'Orders', title: 'Orders', url: 'orders' }, { button: 'Billing details', title: 'Billing details', url: 'custom-order-billing-details' }, ];