display right account name, but only in slug form

This commit is contained in:
Lisa P 2015-08-25 18:00:51 -04:00
parent c0fe47f2c1
commit 33c439a928
2 changed files with 7 additions and 3 deletions

View File

@ -29,6 +29,10 @@ Controller = Ember.Controller.extend
@set('allHooks', hooks) @set('allHooks', hooks)
accountName: (->
@get('allHooks').get('firstObject.ownerName')
).property('allHooks')
hooks: (-> hooks: (->
@reloadHooks() unless hooks = @get('allHooks') @reloadHooks() unless hooks = @get('allHooks')
@get('allHooks').filter (hook) -> hook.get('admin') @get('allHooks').filter (hook) -> hook.get('admin')

View File

@ -22,7 +22,7 @@
{{/if}} {{/if}}
<div class="profile-header"> <div class="profile-header">
<h1>{{user.name}}</h1> <h1>{{accountName}}</h1>
</div> </div>
{{#if user.isSyncing}} {{#if user.isSyncing}}