UX: Don't show sign up button when the header has extra info in it

This commit is contained in:
Robin Ward 2014-08-12 17:38:21 -04:00
parent 914bbd2a7b
commit 19ea20e4cc
1 changed files with 5 additions and 1 deletions

View File

@ -13,7 +13,11 @@ export default Discourse.Controller.extend({
loadingNotifications: false, loadingNotifications: false,
needs: ['application'], needs: ['application'],
showSignUpButton: Em.computed.alias('controllers.application.canSignUp'), canSignUp: Em.computed.alias('controllers.application.canSignUp'),
showSignUpButton: function() {
return this.get('canSignUp') && !this.get('showExtraInfo');
}.property('canSignUp', 'showExtraInfo'),
showStarButton: function() { showStarButton: function() {
return Discourse.User.current() && !this.get('topic.isPrivateMessage'); return Discourse.User.current() && !this.get('topic.isPrivateMessage');