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 { ...@@ -118,7 +118,7 @@ export default {
width="24" width="24"
class="avatar avatar-inline s24" class="avatar avatar-inline s24"
:alt="assigneeAlt(user)" :alt="assigneeAlt(user)"
:src="user.avatar_url" :src="user.avatarUrl"
/> />
<span class="author"> <span class="author">
{{ user.name }} {{ user.name }}
...@@ -158,7 +158,7 @@ export default { ...@@ -158,7 +158,7 @@ export default {
width="32" width="32"
class="avatar avatar-inline s32" class="avatar avatar-inline s32"
:alt="assigneeAlt(firstUser)" :alt="assigneeAlt(firstUser)"
:src="firstUser.avatar_url" :src="firstUser.avatarUrl"
/> />
<span class="author"> <span class="author">
{{ firstUser.name }} {{ firstUser.name }}
...@@ -185,7 +185,7 @@ export default { ...@@ -185,7 +185,7 @@ export default {
width="32" width="32"
class="avatar avatar-inline s32" class="avatar avatar-inline s32"
:alt="assigneeAlt(user)" :alt="assigneeAlt(user)"
:src="user.avatar_url" :src="user.avatarUrl"
/> />
</a> </a>
</div> </div>
......
...@@ -20,7 +20,12 @@ export default class SidebarStore { ...@@ -20,7 +20,12 @@ export default class SidebarStore {
processUserData(data) { processUserData(data) {
if (data.assignees) { 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.removeAllUserIds();
this.renderedUsers.map(u => this.addUserId(u.id)); 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