From 602149db6ea5bd8ad76bf530c4fa423220eb0bea Mon Sep 17 00:00:00 2001 From: Chetan Verma <63091769+chetan-v@users.noreply.github.com> Date: Sat, 25 Jul 2020 13:15:45 +0530 Subject: [PATCH] Fix Import Project form to check for the presence of a file (#2979) --- main/webapp/modules/core/langs/translation-en.json | 1 + .../core/scripts/index/import-project-ui.html | 8 ++++---- .../modules/core/scripts/index/import-project-ui.js | 12 ++++++++++-- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/main/webapp/modules/core/langs/translation-en.json b/main/webapp/modules/core/langs/translation-en.json index d73c10215..666663771 100644 --- a/main/webapp/modules/core/langs/translation-en.json +++ b/main/webapp/modules/core/langs/translation-en.json @@ -82,6 +82,7 @@ "core-index-import/parse-as": "Parse data as", "core-index-import/this-computer": "This Computer", "core-index-import/warning-data-file": "You must specify a data file to import.", + "core-index-import/warning-import-file": "You must specify a project file.", "core-index-import/uploading-data": "Uploading data…", "core-index-import/web-address": "Web Addresses (URLs)", "core-index-import/warning-web-address": "You must specify a valid web address (URL) to import.", diff --git a/main/webapp/modules/core/scripts/index/import-project-ui.html b/main/webapp/modules/core/scripts/index/import-project-ui.html index 0e67dbfa6..bbe0e3655 100644 --- a/main/webapp/modules/core/scripts/index/import-project-ui.html +++ b/main/webapp/modules/core/scripts/index/import-project-ui.html @@ -3,15 +3,15 @@