Fixing Hanging Protocols issue with timepoint type
This commit is contained in:
parent
19c31ffbb8
commit
d45321dae3
@ -62,7 +62,6 @@ Template.toolbarSection.helpers({
|
|||||||
disabled: isToolDisabled
|
disabled: isToolDisabled
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: Get real icons for CR / UN / EX
|
|
||||||
targetSubTools.push({
|
targetSubTools.push({
|
||||||
id: 'targetCR',
|
id: 'targetCR',
|
||||||
title: 'CR Target',
|
title: 'CR Target',
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
|
import { Meteor } from 'meteor/meteor';
|
||||||
import { Template } from 'meteor/templating';
|
import { Template } from 'meteor/templating';
|
||||||
|
|
||||||
// TODO: [LT-refactor] move this to ohif:hanging-protocols package
|
|
||||||
|
|
||||||
const getTimepointType = study => {
|
const getTimepointType = study => {
|
||||||
const timepointApi = Template.instance().timepointApi;
|
const instance = Template.instance();
|
||||||
|
const timepointApi = instance.timepointApi || instance.data.timepointApi;
|
||||||
if (!timepointApi) {
|
if (!timepointApi) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -16,8 +16,10 @@ const getTimepointType = study => {
|
|||||||
return timepoint.timepointType;
|
return timepoint.timepointType;
|
||||||
};
|
};
|
||||||
|
|
||||||
HP = HP || false;
|
Meteor.startup(() => {
|
||||||
|
HP = HP || false;
|
||||||
|
|
||||||
if (HP) {
|
if (HP) {
|
||||||
HP.addCustomAttribute('timepointType', 'Timepoint Type', getTimepointType);
|
HP.addCustomAttribute('timepointType', 'Timepoint Type', getTimepointType);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|||||||
@ -35,6 +35,7 @@ Package.onUse(function(api) {
|
|||||||
api.use('ohif:core');
|
api.use('ohif:core');
|
||||||
api.use('ohif:log');
|
api.use('ohif:log');
|
||||||
api.use('ohif:study-list');
|
api.use('ohif:study-list');
|
||||||
|
api.use('ohif:hanging-protocols');
|
||||||
|
|
||||||
// Client and server imports
|
// Client and server imports
|
||||||
api.addFiles('both/index.js', ['client', 'server']);
|
api.addFiles('both/index.js', ['client', 'server']);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user