From 258d3cbb89e8c4074f134dec5efcd5c1643d9f02 Mon Sep 17 00:00:00 2001 From: George Gevoian Date: Tue, 7 Dec 2021 15:52:14 -0800 Subject: [PATCH] (core) Swap table and file names in Importer Summary: The table name now comes first, making it easier to distinguish tables coming from an Excel file with multiple sheets. Test Plan: Tested manually and updated browser test. Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D3173 --- app/client/components/Importer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/components/Importer.ts b/app/client/components/Importer.ts index 82a7867c..9a778ab2 100644 --- a/app/client/components/Importer.ts +++ b/app/client/components/Importer.ts @@ -902,7 +902,7 @@ class CancelledError extends Error { function getSourceDescription(sourceInfo: SourceInfo, upload: UploadResult) { const origName = upload.files[sourceInfo.uploadFileIndex].origName; - return sourceInfo.origTableName ? origName + ' - ' + sourceInfo.origTableName : origName; + return sourceInfo.origTableName ? `${sourceInfo.origTableName} - ${origName}` : origName; } const cssContainer = styled('div', `