From 33c439a92886e440eb24d752f931edb0dd708c99 Mon Sep 17 00:00:00 2001 From: Lisa P Date: Tue, 25 Aug 2015 18:00:51 -0400 Subject: [PATCH] display right account name, but only in slug form --- app/controllers/account.coffee | 8 ++++++-- app/templates/account.hbs | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) 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}}
-

{{user.name}}

+

{{accountName}}

{{#if user.isSyncing}}