From 7631287f8b4dc483fe8c2009c04cd9a43b0bcd38 Mon Sep 17 00:00:00 2001 From: Edoardo Sabadelli Date: Thu, 11 Jun 2026 15:50:21 +0200 Subject: [PATCH] fix(OpenFileDialog): use the same generic texts for both DV and EVER/LL --- src/components/OpenFileDialog/utils.js | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/components/OpenFileDialog/utils.js b/src/components/OpenFileDialog/utils.js index 5d8ff0d8a..b4b92c056 100644 --- a/src/components/OpenFileDialog/utils.js +++ b/src/components/OpenFileDialog/utils.js @@ -61,22 +61,10 @@ const texts = { ), newButtonLabel: i18n.t('New map'), }, - [AO_TYPE_EVENT_VISUALIZATION]: { - modalTitle: i18n.t('Open a line list'), - loadingText: i18n.t('Loading line lists'), - errorTitle: i18n.t("Couldn't load line lists"), - errorText: i18n.t( - 'There was a problem loading line lists. Try again or contact your system administrator.' - ), - noDataText: i18n.t( - 'No line lists found. Click New line list to get started.' - ), - noFilteredDataText: i18n.t( - "No line lists found. Try adjusting your search or filter options to find what you're looking for." - ), - newButtonLabel: i18n.t('New line list'), - }, } +// Event visualizations use the same texts as visualizations +texts[AO_TYPE_EVENT_VISUALIZATION] = texts[AO_TYPE_VISUALIZATION] + export const getTranslatedString = (type, key) => (texts[type] || texts[NO_TYPE])[key]