From 8dc30f092d7e2428dc72f70ac568edb4024c576f Mon Sep 17 00:00:00 2001 From: Maxwell Zimon Date: Sun, 12 Apr 2020 18:10:20 -0500 Subject: [PATCH] #1055: add "selected" to the filename for metadata exports of selected tips only --- src/components/download/helperFunctions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/download/helperFunctions.js b/src/components/download/helperFunctions.js index 8f8aa8549..528f9470a 100644 --- a/src/components/download/helperFunctions.js +++ b/src/components/download/helperFunctions.js @@ -197,7 +197,7 @@ export const strainTSV = (dispatch, filePrefix, nodes, colorings, selectedNodesO /* write out information we've collected */ // todo: filename for selected only - const filename = `${filePrefix}_metadata.tsv`; + const filename = `${filePrefix}${selectedNodesOnly ? "_selected_" : "_"}metadata.tsv`; write(filename, MIME.tsv, linesToWrite.join("\n")); dispatch(infoNotification({message: `Metadata exported to ${filename}`})); };