mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Close corpus analysis init modal only if meta data has been recieved.
This commit is contained in:
parent
b5ec4906c5
commit
b6986e2581
@ -4,9 +4,11 @@
|
|||||||
*/
|
*/
|
||||||
function saveMetaData() {
|
function saveMetaData() {
|
||||||
let [payload, client, results, rest] = arguments;
|
let [payload, client, results, rest] = arguments;
|
||||||
|
client.notifyView('meta-data-recieving');
|
||||||
results.metaData.init(payload)
|
results.metaData.init(payload)
|
||||||
console.info('Metada saved:', results);
|
console.info('Metada saved:', results);
|
||||||
client.isBusy = false;
|
client.isBusy = false;
|
||||||
|
client.notifyView('meta-data-recieved');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -35,8 +35,16 @@ function connectingCallback(resultsList, detail) {
|
|||||||
resultsList.analysisInitModal.open();
|
resultsList.analysisInitModal.open();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Callback that closes teh loading modal from above.
|
// Callback that closes the loading modal from above.
|
||||||
function connectedCallback(resultsList, detail) {
|
function connectedCallback(resultsList, detail) {
|
||||||
|
/**
|
||||||
|
* In the past this closed the init modal. But the init modal is now being
|
||||||
|
* closed when the meta data has also been recieved. See below.
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
// Callback that closes the loading modal from above.
|
||||||
|
function metaDataRecievedCallback(resultsList, detail) {
|
||||||
resultsList.analysisInitModal.close();
|
resultsList.analysisInitModal.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -233,6 +241,7 @@ function resultsDataRecievedCallback(resultsList, detail) {
|
|||||||
export {
|
export {
|
||||||
connectingCallback,
|
connectingCallback,
|
||||||
connectedCallback,
|
connectedCallback,
|
||||||
|
metaDataRecievedCallback,
|
||||||
clientFailedCallback,
|
clientFailedCallback,
|
||||||
queryDataPreparingCallback,
|
queryDataPreparingCallback,
|
||||||
queryDataRecievingCallback,
|
queryDataRecievingCallback,
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
import {
|
import {
|
||||||
connectingCallback,
|
connectingCallback,
|
||||||
connectedCallback,
|
connectedCallback,
|
||||||
|
metaDataRecievedCallback,
|
||||||
clientFailedCallback,
|
clientFailedCallback,
|
||||||
queryDataPreparingCallback,
|
queryDataPreparingCallback,
|
||||||
queryDataRecievingCallback,
|
queryDataRecievingCallback,
|
||||||
@ -38,6 +39,14 @@ function recieveClientNotification(eventType, resultsList) {
|
|||||||
console.info('View recieved notification:', caseIdentifier);
|
console.info('View recieved notification:', caseIdentifier);
|
||||||
connectedCallback(resultsList, event.detail);
|
connectedCallback(resultsList, event.detail);
|
||||||
break;
|
break;
|
||||||
|
case 'meta-data-recieving':
|
||||||
|
console.info('View recieved notification:', caseIdentifier);
|
||||||
|
break;
|
||||||
|
case 'meta-data-recieved':
|
||||||
|
console.info('View recieved notification:', caseIdentifier);
|
||||||
|
// execute
|
||||||
|
metaDataRecievedCallback(resultsList, event.detail);
|
||||||
|
break;
|
||||||
case 'query-data-prepareing':
|
case 'query-data-prepareing':
|
||||||
console.info('View recieved notification:', caseIdentifier);
|
console.info('View recieved notification:', caseIdentifier);
|
||||||
// Hide all download buttons
|
// Hide all download buttons
|
||||||
|
Loading…
Reference in New Issue
Block a user