Most JS files, all helpers and simple reconciliations

This commit is contained in:
Emanuel F. Oliveira committed 2017-01-29 22:11:17 -02:00
1 parent 21400c5836
commit 9e69c43dda
58 files changed
+776 -1025

No files matched your search

@@ -1,7 +1,11 @@
import { Blaze } from 'meteor/blaze';
import { moment } from 'meteor/momentjs:moment';
/**
* A global Blaze UI helper to format a DICOM Time for display using the Moment library
*/
UI.registerHelper('formatTM', function(context, options) {
const formatTM = (context, options) => {
if (!context) {
return;
}
@@ -21,4 +25,8 @@ UI.registerHelper('formatTM', function(context, options) {
}
return dateTime.format(format);
});
};
Blaze.registerHelper('formatTM', formatTM);
export { formatTM };