14 lines
340 B
JavaScript
14 lines
340 B
JavaScript
import Ember from 'ember';
|
|
|
|
const { Mixin, inject: { service }} = Ember;
|
|
|
|
export default Mixin.create({
|
|
currentUser: service('session-account'),
|
|
metaData: null,
|
|
|
|
setupMetaDataOnInit: Ember.on('init', function() {
|
|
this.get('currentUser.account').then((user) => {
|
|
this.set('metaData', user.get('metaData'));
|
|
});
|
|
}),
|
|
});
|