PWV-182: Integrating study/timepoint browser changes on PIM Web Viewer
This commit is contained in:
parent
37137b9331
commit
05b2aa3e15
@ -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
|
||||
|
||||
@ -29,7 +29,6 @@ Template.viewerSection.onCreated(() => {
|
||||
Template.viewerSection.events({
|
||||
'transitionend .sidebarMenu'(event) {
|
||||
if (!event.target.classList.contains('sidebarMenu')) return;
|
||||
|
||||
window.ResizeViewportManager.handleResize();
|
||||
},
|
||||
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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 });
|
||||
}
|
||||
|
||||
@ -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
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@ -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() {
|
||||
|
||||
@ -27,8 +27,7 @@
|
||||
"leftSidebarOpen": false,
|
||||
"displaySetNavigationLoopOverSeries": false,
|
||||
"displaySetNavigationMultipleViewports": true,
|
||||
"autoPositionMeasurementsTextCallOuts": "TRLB",
|
||||
"displaySeriesQuickSwitch": true
|
||||
"autoPositionMeasurementsTextCallOuts": "TRLB"
|
||||
}
|
||||
},
|
||||
"proxy": {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user