mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-22 19:32:54 +03:00
Migrated session-store to native class syntax
no issue - part of the push to standardize on native es6 classes in place of EmberObject syntax
This commit is contained in:
parent
f73837fba3
commit
83fb74613c
@ -4,8 +4,8 @@ import {inject as service} from '@ember/service';
|
||||
|
||||
// Ghost already uses a cookie to store it's session so we don't need to keep
|
||||
// track of any other peristent login state separately in Ember Simple Auth
|
||||
export default EphemeralStore.extend({
|
||||
session: service(),
|
||||
export default class ApplicationStore extends EphemeralStore {
|
||||
@service session;
|
||||
|
||||
// when loading the app we want ESA to try fetching the currently logged
|
||||
// in user. This will succeed/fail depending on whether we have a valid
|
||||
@ -22,4 +22,4 @@ export default EphemeralStore.extend({
|
||||
return RSVP.reject();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user