Skip to content

Commit

Permalink
fix: [PROD-13350] rewrite warning message shown when deleting a dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
csm-thu committed Oct 10, 2024
1 parent cdb8720 commit 9fe83ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
"body": "Do you really want to delete <i>{{datasetName}}</i>? This action is irreversible.{{impactedScenariosWarning}}",
"bodyWithChildren": "The following children datasets will also be permanently removed:",
"confirmButton": "Delete",
"impactedScenariosWarning": "All the scenarios using this dataset will be impacted."
"impactedScenariosWarning": "Users won’t be able to launch scenarios using this dataset, but previously existing results will still be available."
},
"cancel": "Cancel"
},
Expand Down
2 changes: 1 addition & 1 deletion public/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
"body": "Voulez-vous supprimer <i>{{datasetName}}</i> ? Cette action est irréversible.{{impactedScenariosWarning}}",
"bodyWithChildren": "Les datasets enfants suivants seront également supprimés:",
"confirmButton": "Supprimer",
"impactedScenariosWarning": "Tous les scénarios utilisant ce dataset seront impactés."
"impactedScenariosWarning": "Les scénarios utilisant ce dataset ne pourront pas être relancés, mais les résultats déjà disponibles resteront visibles."
},
"cancel": "Annuler"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export const DeleteDatasetButton = ({ dataset, location }) => {
: ' ' + // Space character is here on purpose, to separate concatenated sentences in confirmation dialog body
t(
'commoncomponents.datasetmanager.dialogs.delete.impactedScenariosWarning',
'All the scenarios using this dataset will be impacted.'
'Users won’t be able to launch scenarios using this dataset, but previously existing results will still ' +
'be available.'
);

const dialogProps = {
Expand Down

0 comments on commit 9fe83ec

Please sign in to comment.