PWV-15: Creating routing branch
This commit is contained in:
1 parent
e618e32341
commit
efb4ca23b5
24 files changed
+158
-437
No files matched your search
@@ -6,17 +6,18 @@ import { OHIF } from 'meteor/ohif:core';
|
||||
OHIF.measurements.toggleLabelButton = options => {
|
||||
const toolType = options.measurement.toolType;
|
||||
const measurementId = options.measurement._id;
|
||||
let buttonView = null;
|
||||
|
||||
const removeButtonView = () => {
|
||||
if (!options.instance.buttonView) {
|
||||
if (!buttonView) {
|
||||
return;
|
||||
}
|
||||
|
||||
Blaze.remove(options.instance.buttonView);
|
||||
options.instance.buttonView = null;
|
||||
Blaze.remove(buttonView);
|
||||
buttonView = null;
|
||||
};
|
||||
|
||||
if (options.instance.buttonView) {
|
||||
if (buttonView) {
|
||||
removeButtonView();
|
||||
}
|
||||
|
||||
@@ -53,6 +54,5 @@ OHIF.measurements.toggleLabelButton = options => {
|
||||
options.measurement.description = description;
|
||||
}
|
||||
};
|
||||
const view = Blaze.renderWithData(Template.measureFlow, data, options.element);
|
||||
options.instance.buttonView = view;
|
||||
buttonView = Blaze.renderWithData(Template.measureFlow, data, options.element);
|
||||
};
|
||||
Reference in new issue
Block a user