ohif-viewer/Packages/ohif-hanging-protocols/client/components/matchedProtocols/matchedProtocols.js
2018-12-14 14:38:36 +01:00

21 lines
493 B
JavaScript

import { OHIF } from 'ohif-core';
Template.matchedProtocols.helpers({
/**
* Reactively re-render the MatchedProtocols Collection contents
*/
matchedProtocols() {
return MatchedProtocols.find();
}
});
Template.matchedProtocols.events({
/**
* Instruct the ProtocolEngine to apply the specified Hanging Protocol
*/
'click .matchedProtocol': function() {
var protocol = this;
ProtocolEngine.setHangingProtocol(protocol);
}
});