mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
42a1d55858
Ref #2413 - Remove fixture and use actual API - Store and send down actual logged in user data - Refactor isLoggedIn to use computed property on application - After signin, update user data in dependency container - Add CSRF to all routes and controllers via initializer - Update authenticated route to check for user.isLoggedIn - Add notifications for signin error - Add notifications.showAPIError helper - Add plumbing for refreshless signup to doSignUp in admin controller
11 lines
No EOL
263 B
JavaScript
11 lines
No EOL
263 B
JavaScript
var ApplicationController = Ember.Controller.extend({
|
|
isSignedIn: Ember.computed.bool('user.isSignedIn'),
|
|
|
|
actions: {
|
|
toggleMenu: function () {
|
|
this.toggleProperty('showMenu');
|
|
}
|
|
}
|
|
});
|
|
|
|
export default ApplicationController; |