Fixing radio CSS issues and moving viewStudies to ohif:study-list package
This commit is contained in:
parent
dc405e53da
commit
bc533c14ad
@ -5,9 +5,7 @@
|
||||
cursor: pointer
|
||||
|
||||
input
|
||||
height: 0
|
||||
width: 0
|
||||
visibility: hidden
|
||||
display: none
|
||||
|
||||
span
|
||||
padding-left: 23px
|
||||
|
||||
@ -33,22 +33,6 @@ const getAssociationAssessment = () => {
|
||||
return assessment;
|
||||
};
|
||||
|
||||
/**
|
||||
* Loads multiple unassociated studies in the Viewer
|
||||
*/
|
||||
const viewStudies = () => {
|
||||
OHIF.log.info('viewStudies');
|
||||
const selectedStudies = OHIF.studylist.getSelectedStudies();
|
||||
|
||||
if (!selectedStudies || !selectedStudies.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
const studyInstanceUids = selectedStudies.map(study => study.studyInstanceUid).join(';');
|
||||
|
||||
Router.go('viewerStudies', { studyInstanceUids });
|
||||
};
|
||||
|
||||
/**
|
||||
* Removes all present study / timepoint associations from the Clinical Trial
|
||||
*/
|
||||
@ -86,7 +70,7 @@ const removeTimepointAssociations = event => {
|
||||
|
||||
Meteor.startup(() => {
|
||||
OHIF.studylist.dropdown.setItems([{
|
||||
action: viewStudies,
|
||||
action: OHIF.studylist.viewStudies,
|
||||
text: 'View',
|
||||
separatorAfter: true
|
||||
}, {
|
||||
|
||||
@ -9,3 +9,4 @@ import './retrieveStudiesMetadata.js';
|
||||
import './retrieveStudyMetadata.js';
|
||||
import './studylist.js';
|
||||
import './viewSeriesDetails.js';
|
||||
import './viewStudies.js';
|
||||
|
||||
18
Packages/ohif-study-list/client/lib/viewStudies.js
Normal file
18
Packages/ohif-study-list/client/lib/viewStudies.js
Normal file
@ -0,0 +1,18 @@
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import { Router } from 'meteor/iron:router';
|
||||
|
||||
/**
|
||||
* Loads multiple unassociated studies in the Viewer
|
||||
*/
|
||||
OHIF.studylist.viewStudies = () => {
|
||||
OHIF.log.info('viewStudies');
|
||||
const selectedStudies = OHIF.studylist.getSelectedStudies();
|
||||
|
||||
if (!selectedStudies || !selectedStudies.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
const studyInstanceUids = selectedStudies.map(study => study.studyInstanceUid).join(';');
|
||||
|
||||
Router.go('viewerStudies', { studyInstanceUids });
|
||||
};
|
||||
@ -489,7 +489,8 @@ const setDisplaySet = (data, displaySetInstanceUid, templateData) => {
|
||||
|
||||
// If we didn't find anything, stop here
|
||||
if (!data.displaySet) {
|
||||
throw new OHIFError('Display set not found in specified study!');
|
||||
data.displaySet = study.displaySets[0];
|
||||
// throw new OHIFError('Display set not found in specified study!');
|
||||
}
|
||||
|
||||
// Otherwise, load pass the data object into loadSeriesIntoViewport
|
||||
|
||||
Loading…
Reference in New Issue
Block a user