diff --git a/enterprise/frontend/src/routes/(app)/(internal)/settings/+page.svelte b/enterprise/frontend/src/routes/(app)/(internal)/settings/+page.svelte index ee50e74f3..2346564e3 100644 --- a/enterprise/frontend/src/routes/(app)/(internal)/settings/+page.svelte +++ b/enterprise/frontend/src/routes/(app)/(internal)/settings/+page.svelte @@ -24,7 +24,7 @@ const href = '/settings/client-settings'; const result = await preloadData(href); if (result.type === 'loaded' && result.status === 200) { - pushState(href, { clientSettings: result.data }); + pushState('', { clientSettings: result.data }); } else { // Something went wrong, try navigating goto(href); diff --git a/enterprise/frontend/src/routes/(app)/(internal)/settings/client-settings/+page.server.ts b/enterprise/frontend/src/routes/(app)/(internal)/settings/client-settings/+page.server.ts index 451ccdca9..c642a3b8e 100644 --- a/enterprise/frontend/src/routes/(app)/(internal)/settings/client-settings/+page.server.ts +++ b/enterprise/frontend/src/routes/(app)/(internal)/settings/client-settings/+page.server.ts @@ -103,9 +103,7 @@ export const actions: Actions = { return setFlash( { type: 'success', - message: m.successfullyUpdatedObject({ - object: safeTranslate(modelVerboseName).toLowerCase() - }) + message: m.successfullyUpdatedClientSettings() }, event ); diff --git a/frontend/messages/en.json b/frontend/messages/en.json index f26b1966c..c6db96959 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -737,5 +737,6 @@ "createUser": "Create user", "createUserHelpText": "Create or link a third party user to the representative based on the email", "nameDuplicate": "Name already exists", - "noAnswer": "No answer" + "noAnswer": "No answer", + "successfullyUpdatedClientSettings": "Client settings successfully updated, please refresh the page." } diff --git a/frontend/messages/fr.json b/frontend/messages/fr.json index c49ba8685..d56296964 100644 --- a/frontend/messages/fr.json +++ b/frontend/messages/fr.json @@ -670,5 +670,6 @@ "observationSemiColon": "Observation:", "tableMode": "Mode tableau", "owner": "Propriétaire", - "waitingRiskAcceptances": "Bonjour ! Vous avez actuellement {number} risque{s} en attente d'acceptation. Vous pouvez les retrouver dans l'onglet risque." + "waitingRiskAcceptances": "Bonjour ! Vous avez actuellement {number} risque{s} en attente d'acceptation. Vous pouvez les retrouver dans l'onglet risque.", + "successfullyUpdatedClientSettings": "Paramètres du client mis à jour avec succès. Vous pouvez rafrachir la page." }