Disable landing page on pro for now
This commit is contained in:
parent
203fbcea8a
commit
36be656c62
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user