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

Use correct data for ItemIssueComponent from response

parent 2748a01a
...@@ -21,19 +21,20 @@ ...@@ -21,19 +21,20 @@
template: ` template: `
<div> <div>
<div class="item-details"> <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"> <h5 class="item-title">
<a href="issue.url"> <a :href="issue.url">
{{ issue.title }} {{ issue.title }}
</a> </a>
</h5> </h5>
<a href="issue.url" class="issue-link"> <a :href="issue.url" class="issue-link">
#{{issue.id}} #{{issue.iid}}
</a> </a>
&middot;
<span> <span>
Opened Opened
<a href="issue.url" class="issue-date"> <a :href="issue.url" class="issue-date">
{{ issue.datetime }} {{ issue.createdAt }}
</a> </a>
</span> </span>
<span> <span>
......
...@@ -55,8 +55,10 @@ ...@@ -55,8 +55,10 @@
newEvents.forEach((item) => { newEvents.forEach((item) => {
item.totalTime = item.total_time; item.totalTime = item.total_time;
item.createdAt = item.created_at;
delete item.total_time; delete item.total_time;
delete item.created_at;
}); });
return newEvents; 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