diff --git a/app/controllers/account.coffee b/app/controllers/account.coffee index a922a5a8..5ffba74a 100644 --- a/app/controllers/account.coffee +++ b/app/controllers/account.coffee @@ -29,6 +29,10 @@ Controller = Ember.Controller.extend @set('allHooks', hooks) + accountName: (-> + @get('allHooks').get('firstObject.ownerName') + ).property('allHooks') + hooks: (-> @reloadHooks() unless hooks = @get('allHooks') @get('allHooks').filter (hook) -> hook.get('admin') @@ -41,11 +45,11 @@ Controller = Ember.Controller.extend showPrivateReposHint: (-> @config.show_repos_hint == 'private' - ) .property() + ).property() showPublicReposHint: (-> @config.show_repos_hint == 'public' - ) .property() + ).property() billingUrl: (-> id = if @get('model.type') == 'user' then 'user' else @get('model.login') diff --git a/app/templates/account.hbs b/app/templates/account.hbs index e535d52c..93a0d8f0 100644 --- a/app/templates/account.hbs +++ b/app/templates/account.hbs @@ -22,7 +22,7 @@ {{/if}} <div class="profile-header"> - <h1>{{user.name}}</h1> + <h1>{{accountName}}</h1> </div> {{#if user.isSyncing}}