From d951fa5e8a39bfb52c206ff71fd69150c0d05977 Mon Sep 17 00:00:00 2001 From: Stefano Ricci <1219739+SteRiccio@users.noreply.github.com> Date: Wed, 20 Sep 2023 13:57:58 +0200 Subject: [PATCH] survey import: prevent starting multiple import jobs (#3024) Co-authored-by: Stefano Ricci --- webapp/components/survey/SurveyCreate/SurveyCreate.js | 7 +++++-- .../survey/SurveyCreate/store/actions/useOnImport.js | 9 +++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/webapp/components/survey/SurveyCreate/SurveyCreate.js b/webapp/components/survey/SurveyCreate/SurveyCreate.js index 78ddbdeac7..9ac5f28bad 100644 --- a/webapp/components/survey/SurveyCreate/SurveyCreate.js +++ b/webapp/components/survey/SurveyCreate/SurveyCreate.js @@ -50,6 +50,7 @@ const SurveyCreate = (props) => { cloneFromCycle, options, file, + uploading, uploadProgressPercent, } = newSurvey @@ -62,6 +63,7 @@ const SurveyCreate = (props) => {
{
{ {createType === createTypes.import && showImport && ( <> - {uploadProgressPercent >= 0 ? ( + {uploading && uploadProgressPercent >= 0 ? (
@@ -204,7 +207,7 @@ const SurveyCreate = (props) => {