1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-08 06:55:28 +02:00

Add appMeta model and getSessionItem method

This commit is contained in:
zinyando 2016-05-13 19:35:10 +02:00
parent c07aaafd13
commit 51f934a0ee

View file

@ -1,9 +1,20 @@
import Ember from 'ember';
import Models from 'documize/utils/model';
const Session = Ember.Service.extend({
appMeta: Ember.computed(function(){
return Models.AppMeta.create();
}),
login(credentials) {
// TODO: figure out what to do with credentials
return new Ember.RSVP.resolve();
},
boot(){
return new Ember.RSVP.resolve();
},
getSessionItem(key){
return this.get(`data.${key}`);
}
});