mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-13 14:39:52 +03:00
0229a127fe
Closes #2410 - Add signup action that posts to signup endpoint - Fix nav bar showing on signup page - Fix image link when a user hasn't set their image yet - Redirect to the ember/signin page if requesting an ember page
12 lines
348 B
JavaScript
12 lines
348 B
JavaScript
var ApplicationController = Ember.Controller.extend({
|
|
isSignedIn: Ember.computed.bool('user.isSignedIn'),
|
|
hideNav: Ember.computed.match('currentPath', /(signin|signup|forgotten|reset)/),
|
|
|
|
actions: {
|
|
toggleMenu: function () {
|
|
this.toggleProperty('showMenu');
|
|
}
|
|
}
|
|
});
|
|
|
|
export default ApplicationController; |