LT-73 Move export tool and progress dialog component to OHIFViewer
This commit is contained in:
1 parent
c5651e7e04
commit
9970b8795b
15 files changed
+73
-50
No files matched your search
+1
-22
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user