PWV-182: Integrating study/timepoint browser changes on PIM Web Viewer
This commit is contained in:
1 parent
37137b9331
commit
05b2aa3e15
7 files changed
+6
-10
No files matched your search
@@ -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
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
+1
-1
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user