use data from model like Piotr said

This commit is contained in:
Lisa P 2015-08-26 10:00:24 -04:00
parent 33c439a928
commit 6ef0c1af96

View File

@ -30,8 +30,8 @@ Controller = Ember.Controller.extend
@set('allHooks', hooks)
accountName: (->
@get('allHooks').get('firstObject.ownerName')
).property('allHooks')
@get('model.name') || @get('model.login')
).property('model.name', 'model.login')
hooks: (->
@reloadHooks() unless hooks = @get('allHooks')