Commit 2fc9b5a2 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Use correct data for ItemIssueComponent from response

parent 2748a01a
......@@ -21,19 +21,20 @@
template: `
<div>
<div class="item-details">
<img class="avatar" src="https://secure.gravatar.com/avatar/3731e7dd4f2b4fa8ae184c0a7519dd58?s=64&amp;d=identicon">
<img class="avatar" :src="issue.author.avatar_url">
<h5 class="item-title">
<a href="issue.url">
<a :href="issue.url">
{{ issue.title }}
</a>
</h5>
<a href="issue.url" class="issue-link">
#{{issue.id}}
<a :href="issue.url" class="issue-link">
#{{issue.iid}}
</a>
&middot;
<span>
Opened
<a href="issue.url" class="issue-date">
{{ issue.datetime }}
<a :href="issue.url" class="issue-date">
{{ issue.createdAt }}
</a>
</span>
<span>
......
......@@ -55,8 +55,10 @@
newEvents.forEach((item) => {
item.totalTime = item.total_time;
item.createdAt = item.created_at;
delete item.total_time;
delete item.created_at;
});
return newEvents;
......
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