LT-365: StudyList :: dialog is off the screen sometimes
This commit is contained in:
parent
dc64210b99
commit
957aad2bf2
@ -1,13 +1,11 @@
|
||||
#progressDialog
|
||||
display: none
|
||||
position: absolute
|
||||
top: 0
|
||||
bottom: 0
|
||||
position: fixed
|
||||
left: 0
|
||||
right: 0
|
||||
margin: auto
|
||||
width: 20%
|
||||
height: 20%
|
||||
min-height: 85px;
|
||||
z-index: 100
|
||||
border-radius: 5px
|
||||
padding: 10px 20px 10px 20px
|
||||
|
||||
@ -43,10 +43,18 @@ openStudyContextMenu = event => {
|
||||
/**
|
||||
* Exports all selected studies on the studylist
|
||||
*/
|
||||
function exportSelectedStudies() {
|
||||
function exportSelectedStudies($study, event) {
|
||||
const selectedStudies = OHIF.studylist.getSelectedStudies();
|
||||
const studiesCount = selectedStudies.length;
|
||||
const studyText = studiesCount > 1 ? 'Studies' : 'Study';
|
||||
|
||||
OHIF.studylist.exportStudies(selectedStudies);
|
||||
OHIF.ui.showFormDialog('dialogConfirm', {
|
||||
element: event.element,
|
||||
title: `Export ${studyText}`,
|
||||
message: `Would you like to export ${studiesCount} ${studyText.toLowerCase()}?`
|
||||
}).then(() => {
|
||||
OHIF.studylist.exportStudies(selectedStudies);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user