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:
parent
c07aaafd13
commit
51f934a0ee
1 changed files with 11 additions and 0 deletions
|
@ -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}`);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue