Adapting header to the new structure

This commit is contained in:
Bruno Alves de Faria committed 2017-03-21 10:16:47 -03:00
1 parent 2d52c9ef0a
commit e83b5348ff
34 files changed
+395 -154

No files matched your search

@@ -0,0 +1,6 @@
import { Router } from 'meteor/iron:router';
import { OHIF } from 'meteor/ohif:core';
OHIF.user.audit = () => {
Router.go('/audit');
};
@@ -0,0 +1,6 @@
import { Router } from 'meteor/iron:router';
import { OHIF } from 'meteor/ohif:core';
OHIF.user.changePassword = () => {
Router.go('/changePassword');
};
@@ -0,0 +1,9 @@
import { Meteor } from 'meteor/meteor';
import { OHIF } from 'meteor/ohif:core';
OHIF.user.getName = () => {
const nameSplit = Meteor.user().profile.fullName.split(' ');
const lastName = nameSplit[nameSplit.length - 1];
nameSplit[nameSplit.length - 1] = lastName.substr(0, 1) + '.';
return nameSplit.join(' ');
};
@@ -0,0 +1,4 @@
import './audit';
import './changePassword';
import './getName';
import './logout';
@@ -0,0 +1,9 @@
import { Meteor } from 'meteor/meteor';
import { Router } from 'meteor/iron:router';
import { OHIF } from 'meteor/ohif:core';
OHIF.user.logout = () => {
Meteor.logout(function() {
Router.go('/entrySignIn');
});
};