mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-01 09:39:51 -04:00
UX: Don't show sign up button when the header has extra info in it
This commit is contained in:
parent
914bbd2a7b
commit
19ea20e4cc
1 changed files with 5 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue