Don't show CTA on landing page

This commit is contained in:
Piotr Sarnacki 2015-04-01 11:32:04 +02:00
parent 8274e23b34
commit defc930699
3 changed files with 11 additions and 7 deletions

View File

@ -19,7 +19,7 @@ Controller = Ember.Controller.extend
}
showCta: (->
!@get('auth.signedIn') && !@get('config.pro')
).property('auth.signedIn')
!@get('auth.signedIn') && !@get('config.pro') && !@get('landingPage')
).property('auth.signedIn', 'landingPage')
`export default Controller`

View File

@ -11,10 +11,14 @@ Route = BasicRoute.extend
@_super.apply(this, arguments)
@store.set('isLandingPageOpened', true)
@controllerFor('top').set('landingPage', true)
deactivate: ->
@_super.apply(this, arguments)
@store.set('isLandingPageOpened', false)
@controllerFor('top').set('landingPage', false)
setupController: (controller, model) ->
repos = Ember.ArrayProxy.extend(
isLoadedBinding: 'repos.isLoaded'