Moving the namespace and some functions from user-management to user package

This commit is contained in:
Bruno Alves de Faria committed 2017-03-24 08:30:30 -03:00
1 parent 65ee016efc
commit 08fc0100f8
11 files changed
+20 -14

No files matched your search

@@ -0,0 +1 @@
import { Accounts } from 'meteor/accounts-base';
@@ -1,4 +1,5 @@
import './active-entry';
import './components';
import './lib';
import './handlers';
import './subscriptions';
@@ -1,11 +0,0 @@
import { Meteor } from 'meteor/meteor';
import { OHIF } from 'meteor/ohif:core';
OHIF.user.getName = () => {
const user = Meteor.user();
if (!user) return '';
const nameSplit = Meteor.user().profile.fullName.split(' ');
const lastName = nameSplit[nameSplit.length - 1];
nameSplit[nameSplit.length - 1] = lastName.substr(0, 1) + '.';
return nameSplit.join(' ');
};
@@ -1,4 +1,2 @@
import './audit';
import './changePassword';
import './getName';
import './logout';
@@ -1,9 +0,0 @@
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');
});
};