LT-73 Move export tool and progress dialog component to OHIFViewer

This commit is contained in:
Evren Ozkan committed 2016-03-01 11:55:58 -05:00
1 parent c5651e7e04
commit 9970b8795b
15 files changed
+73 -50

No files matched your search

@@ -85,26 +85,5 @@ function exportSelectedStudies() {
}
}).fetch() || [];
if (selectedStudies.length < 1) {
return;
}
var studiesToExport = [];
var numberOfStudiesToQuery = selectedStudies.length;
progressDialog.show("Querying Studies...", numberOfStudiesToQuery);
selectedStudies.forEach(function(selectedStudy) {
getStudyMetadata(selectedStudy.studyInstanceUid, function(study) {
studiesToExport.push(study);
var numberOfStudiesQueried = studiesToExport.length;
progressDialog.update(numberOfStudiesQueried);
if (numberOfStudiesQueried === numberOfStudiesToQuery) {
exportStudies(studiesToExport);
}
});
});
exportStudies(selectedStudies);
}