Disable landing page on pro for now

This commit is contained in:
Piotr Sarnacki 2015-04-15 09:19:37 +02:00
parent 203fbcea8a
commit 36be656c62

View File

@ -1,4 +1,5 @@
`import Ember from 'ember'` `import Ember from 'ember'`
`import config from 'travis/config/environment'`
Location = Ember.HistoryLocation.extend Location = Ember.HistoryLocation.extend
init: -> init: ->
@ -12,11 +13,12 @@ Location = Ember.HistoryLocation.extend
getURL: -> getURL: ->
url = this._super.apply(this, arguments) url = this._super.apply(this, arguments)
if location.pathname == '/' unless config.pro
if @get('auth.signedIn') if location.pathname == '/'
return '/repositories' if @get('auth.signedIn')
else return '/repositories'
return '/home' else
return '/home'
url url