Adapting header to the new structure
This commit is contained in:
1 parent
2d52c9ef0a
commit
e83b5348ff
34 files changed
+395
-154
No files matched your search
@@ -0,0 +1,3 @@
|
||||
import './activeEntry.styl';
|
||||
import './activeEntry.js';
|
||||
import './activeEntrySignIn.js';
|
||||
@@ -0,0 +1,15 @@
|
||||
import './emailVerification/emailVerification.html';
|
||||
import './emailVerification/emailVerification.styl';
|
||||
import './emailVerification/emailVerification.js';
|
||||
|
||||
import './hipaaLogPage/hipaaLogPage.styl';
|
||||
import './hipaaLogPage/hipaaLogPage.js';
|
||||
|
||||
import './lastLoginModal/lastLoginModal.html';
|
||||
|
||||
import './timeoutCountdownDialog/timeoutCountdownDialog.html';
|
||||
import './timeoutCountdownDialog/timeoutCountdownDialog.js';
|
||||
|
||||
import './userAccountMenu/userAccountMenu.html';
|
||||
import './userAccountMenu/userAccountMenu.styl';
|
||||
import './userAccountMenu/userAccountMenu.js';
|
||||
@@ -0,0 +1,4 @@
|
||||
import './active-entry';
|
||||
import './components';
|
||||
import './lib';
|
||||
import './subscriptions';
|
||||
@@ -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');
|
||||
});
|
||||
};
|
||||
Reference in new issue
Block a user