UX: Don't show sign up button when the header has extra info in it
This commit is contained in:
parent
914bbd2a7b
commit
19ea20e4cc
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue