Plug billingUrl properly
This commit is contained in:
parent
74d1415258
commit
54cd5079a8
|
@ -47,4 +47,9 @@ Controller = Ember.ObjectController.extend
|
||||||
@config.show_repos_hint == 'public'
|
@config.show_repos_hint == 'public'
|
||||||
) .property()
|
) .property()
|
||||||
|
|
||||||
|
billingUrl: (->
|
||||||
|
id = if @get('model.type') == 'user' then 'user' else @get('model.login')
|
||||||
|
"#{@get('config').billingEndpoint}/subscriptions/#{id}"
|
||||||
|
).property('model.login', 'model.type')
|
||||||
|
|
||||||
`export default Controller`
|
`export default Controller`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user