PWV-182: Integrating study/timepoint browser changes on PIM Web Viewer

This commit is contained in:
Bruno Alves de Faria 2017-10-23 09:28:53 -02:00
parent 37137b9331
commit 05b2aa3e15
7 changed files with 6 additions and 10 deletions

View File

@ -15,6 +15,7 @@ Meteor.startup(() => {
Session.set('TimepointsReady', false);
Session.set('MeasurementsReady', false);
OHIF.viewer.displaySeriesQuickSwitch = true;
OHIF.viewer.stackImagePositionOffsetSynchronizer = new OHIF.viewerbase.StackImagePositionOffsetSynchronizer();
// Create the synchronizer used to update reference lines

View File

@ -29,7 +29,6 @@ Template.viewerSection.onCreated(() => {
Template.viewerSection.events({
'transitionend .sidebarMenu'(event) {
if (!event.target.classList.contains('sidebarMenu')) return;
window.ResizeViewportManager.handleResize();
},

View File

@ -49,6 +49,7 @@ Template.timepointBrowserItem.onCreated(() => {
const text = 'An error has occurred while retrieving studies information';
OHIF.ui.notifications.danger({ text });
OHIF.log.error(error);
instance.summary.set('Failed');
});
updateStudiesData();

View File

@ -79,7 +79,8 @@ Template.timepointBrowserSidebar.helpers({
const { patientId } = currentTimepoint;
let timepoints = [];
if (instance.timepointViewType.get() === 'key') {
timepoints = timepointApi.key();
const filter = { latestDate: { $lte: currentTimepoint.latestDate } };
timepoints = timepointApi.key(filter);
} else {
timepoints = timepointApi.all({ patientId });
}

View File

@ -186,11 +186,6 @@ export const UISettings = new SimpleSchema({
type: Boolean,
label: 'Define if the middle instance of a series will be used as thumbnail. If not, the first instance will be used.',
defaultValue: true
},
displaySeriesQuickSwitch: {
type: Boolean,
label: 'Define if the studies and series quick switch should be displayed above the viewer viewport',
defaultValue: false
}
});

View File

@ -53,7 +53,7 @@ Template.seriesQuickSwitch.helpers({
shallDisplay() {
const instance = Template.instance();
const { rows, columns } = instance.data;
return OHIF.uiSettings.displaySeriesQuickSwitch && rows === 1 && columns <= 2;
return OHIF.viewer.displaySeriesQuickSwitch && rows === 1 && columns <= 2;
},
side() {

View File

@ -27,8 +27,7 @@
"leftSidebarOpen": false,
"displaySetNavigationLoopOverSeries": false,
"displaySetNavigationMultipleViewports": true,
"autoPositionMeasurementsTextCallOuts": "TRLB",
"displaySeriesQuickSwitch": true
"autoPositionMeasurementsTextCallOuts": "TRLB"
}
},
"proxy": {