OHIF-56: Missing button to go back to worklist from an open study
This commit is contained in:
parent
8f46e01422
commit
ec333118d3
@ -45,18 +45,23 @@ Template.ohifViewer.events({
|
|||||||
Router.go('studylist');
|
Router.go('studylist');
|
||||||
} else {
|
} else {
|
||||||
const { studyInstanceUids } = OHIF.viewer.data;
|
const { studyInstanceUids } = OHIF.viewer.data;
|
||||||
|
if (studyInstanceUids) {
|
||||||
Router.go('viewerStudies', { studyInstanceUids });
|
Router.go('viewerStudies', { studyInstanceUids });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Template.ohifViewer.helpers({
|
Template.ohifViewer.helpers({
|
||||||
studyListToggleText() {
|
studyListToggleText() {
|
||||||
|
const instance = Template.instance();
|
||||||
const isViewer = Session.get('ViewerOpened');
|
const isViewer = Session.get('ViewerOpened');
|
||||||
|
|
||||||
// Return empty if viewer was not opened yet
|
if (isViewer) {
|
||||||
if (!OHIF.utils.ObjectPath.get(OHIF, 'viewer.data.studyInstanceUids')) return;
|
instance.hasViewerData = true;
|
||||||
|
return 'Study list';
|
||||||
|
}
|
||||||
|
|
||||||
return isViewer ? 'Study list' : 'Back to viewer';
|
return instance.hasViewerData ? 'Back to viewer' : '';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user