10 lines
331 B
JavaScript
10 lines
331 B
JavaScript
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(' ');
|
|
};
|