LT-365: StudyList :: dialog is off the screen sometimes
This commit is contained in:
parent
dc64210b99
commit
957aad2bf2
@ -1,13 +1,11 @@
|
|||||||
#progressDialog
|
#progressDialog
|
||||||
display: none
|
display: none
|
||||||
position: absolute
|
position: fixed
|
||||||
top: 0
|
|
||||||
bottom: 0
|
|
||||||
left: 0
|
left: 0
|
||||||
right: 0
|
right: 0
|
||||||
margin: auto
|
margin: auto
|
||||||
width: 20%
|
width: 20%
|
||||||
height: 20%
|
min-height: 85px;
|
||||||
z-index: 100
|
z-index: 100
|
||||||
border-radius: 5px
|
border-radius: 5px
|
||||||
padding: 10px 20px 10px 20px
|
padding: 10px 20px 10px 20px
|
||||||
|
|||||||
@ -43,10 +43,18 @@ openStudyContextMenu = event => {
|
|||||||
/**
|
/**
|
||||||
* Exports all selected studies on the studylist
|
* Exports all selected studies on the studylist
|
||||||
*/
|
*/
|
||||||
function exportSelectedStudies() {
|
function exportSelectedStudies($study, event) {
|
||||||
const selectedStudies = OHIF.studylist.getSelectedStudies();
|
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