From 877d87439ee6344acfed8cb2ebbf0157e174ca61 Mon Sep 17 00:00:00 2001 From: Stephan Porada Date: Tue, 15 Sep 2020 11:54:53 +0200 Subject: [PATCH] Fix download buttons on new query --- web/app/static/js/modules/corpus_analysis/view/listeners.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/app/static/js/modules/corpus_analysis/view/listeners.js b/web/app/static/js/modules/corpus_analysis/view/listeners.js index 00ff8bc7..456f6bd1 100644 --- a/web/app/static/js/modules/corpus_analysis/view/listeners.js +++ b/web/app/static/js/modules/corpus_analysis/view/listeners.js @@ -40,6 +40,12 @@ function recieveClientNotification(eventType, resultsList) { break; case 'query-data-prepareing': console.info('View recieved notification:', caseIdentifier); + // Hide all download buttons + resultsList.fullResultsExport.classList.toggle('hide', true); + resultsList.subResultsExport.classList.toggle('hide', true); + // Show all create buttons + resultsList.fullResultsCreate.classList.toggle('hide', false); + resultsList.subResultsCreate.classList.toggle('hide', false); // execute callbacks disableElementsGeneralCallback(resultsList, event.detail); queryDataPreparingCallback(resultsList, event.detail);