Mark contributor in list as selected when opening details

This commit is contained in:
2019-07-12 16:02:32 +02:00
parent 8a156f964b
commit d9ae654f42
6 changed files with 26 additions and 13 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
<tbody>
{{#each contributorList as |c|}}
<tr role="button" class={{if (is-current-user c.contributor) "current-user"}} {{action "openContributorDetails" c.contributor}}>
<tr role="button"
class="{{if (is-current-user c.contributor) "current-user"}} {{if (eq c.contributor.id selectedContributorId) "selected"}}"
{{action "openContributorDetails" c.contributor}}>
<td class="person">
{{user-avatar contributor=c.contributor}} {{c.contributor.name}}
</td>