From 9201780d88353776306baf0f54df5e67f157cbad Mon Sep 17 00:00:00 2001 From: GomeChas Date: Wed, 17 Jul 2024 19:57:10 -0500 Subject: [PATCH] Strip surrounding text from uploaded Galaxy file - Uses a helper isGalaxyFile() to check for Galaxy file syntax. - Handles the rename gracefully with a confirmation pop-up. --- client/src/utils/upload-payload.js | 1 - 1 file changed, 1 deletion(-) diff --git a/client/src/utils/upload-payload.js b/client/src/utils/upload-payload.js index a624bd5b4dbd..c7c2329c89d8 100644 --- a/client/src/utils/upload-payload.js +++ b/client/src/utils/upload-payload.js @@ -41,7 +41,6 @@ export function uploadPayload(items, historyId, composite = false) { } if (isGalaxyFile(fileName)) { const modifiedFileName = fileName.replace(/Galaxy\d+-\[(.*?)\](\..+)/, "$1"); - const keepModifiedName = confirm(`This looks like a previous Galaxy file. We have renamed it.\n\nOriginal Name: ${fileName}\nModified Name: ${modifiedFileName}\n\n Do you want to keep the modified name?`) if (keepModifiedName) { fileName = modifiedFileName;