From 6ef0c1af96fa86478ce9dacd3596425ef5ae2c63 Mon Sep 17 00:00:00 2001 From: Lisa P Date: Wed, 26 Aug 2015 10:00:24 -0400 Subject: [PATCH] use data from model like Piotr said --- app/controllers/account.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/account.coffee b/app/controllers/account.coffee index 5ffba74a..f1ddb699 100644 --- a/app/controllers/account.coffee +++ b/app/controllers/account.coffee @@ -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')