Commit 7c022ae7 authored by Clement Ho's avatar Clement Ho

[skip ci] use camelCase for avatarUrl property name

parent 27f4f2ef
......@@ -118,7 +118,7 @@ export default {
width="24"
class="avatar avatar-inline s24"
:alt="assigneeAlt(user)"
:src="user.avatar_url"
:src="user.avatarUrl"
/>
<span class="author">
{{ user.name }}
......@@ -158,7 +158,7 @@ export default {
width="32"
class="avatar avatar-inline s32"
:alt="assigneeAlt(firstUser)"
:src="firstUser.avatar_url"
:src="firstUser.avatarUrl"
/>
<span class="author">
{{ firstUser.name }}
......@@ -185,7 +185,7 @@ export default {
width="32"
class="avatar avatar-inline s32"
:alt="assigneeAlt(user)"
:src="user.avatar_url"
:src="user.avatarUrl"
/>
</a>
</div>
......
......@@ -20,7 +20,12 @@ export default class SidebarStore {
processUserData(data) {
if (data.assignees) {
this.renderedUsers = data.assignees;
this.renderedUsers = data.assignees.map(a => {
a.avatarUrl = a.avatar_url;
delete a.avatar_url;
return a;
});
this.removeAllUserIds();
this.renderedUsers.map(u => this.addUserId(u.id));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment