From 19ea20e4ccac61b642eec02b80c2600c29a2e84c Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 12 Aug 2014 17:38:21 -0400 Subject: [PATCH] UX: Don't show sign up button when the header has extra info in it --- app/assets/javascripts/discourse/controllers/header.js.es6 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/controllers/header.js.es6 b/app/assets/javascripts/discourse/controllers/header.js.es6 index 47ff0ff9eaf..d4025f173ec 100644 --- a/app/assets/javascripts/discourse/controllers/header.js.es6 +++ b/app/assets/javascripts/discourse/controllers/header.js.es6 @@ -13,7 +13,11 @@ export default Discourse.Controller.extend({ loadingNotifications: false, 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() { return Discourse.User.current() && !this.get('topic.isPrivateMessage');