|
@ -166,7 +166,11 @@ |
|
|
/* eslint-enable prettier/prettier */ |
|
|
/* eslint-enable prettier/prettier */ |
|
|
}} |
|
|
}} |
|
|
<span class="tooltiptext-left"> |
|
|
<span class="tooltiptext-left"> |
|
|
{{ givenByMeDescriptions[contact.did] || "Nothing" }} |
|
|
{{ |
|
|
|
|
|
givenByMeDescriptions[contact.did] |
|
|
|
|
|
? "Most recently: " + givenByMeDescriptions[contact.did] |
|
|
|
|
|
: "(None given yet.)" |
|
|
|
|
|
}} |
|
|
</span> |
|
|
</span> |
|
|
<button |
|
|
<button |
|
|
class="text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md mb-6" |
|
|
class="text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md mb-6" |
|
@ -188,7 +192,11 @@ |
|
|
/* eslint-enable prettier/prettier */ |
|
|
/* eslint-enable prettier/prettier */ |
|
|
}} |
|
|
}} |
|
|
<span class="tooltiptext-left"> |
|
|
<span class="tooltiptext-left"> |
|
|
{{ givenToMeDescriptions[contact.did] || "Nothing" }} |
|
|
{{ |
|
|
|
|
|
givenToMeDescriptions[contact.did] |
|
|
|
|
|
? "Most recently: " + givenToMeDescriptions[contact.did] |
|
|
|
|
|
: "(None received yet.)" |
|
|
|
|
|
}} |
|
|
</span> |
|
|
</span> |
|
|
<button |
|
|
<button |
|
|
class="text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md mb-6" |
|
|
class="text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md mb-6" |
|
@ -324,8 +332,8 @@ export default class ContactsView extends Vue { |
|
|
const contactUnconfirmed: Record<string, number> = {}; |
|
|
const contactUnconfirmed: Record<string, number> = {}; |
|
|
const allData: Array<GiveServerRecord> = resp.data.data; |
|
|
const allData: Array<GiveServerRecord> = resp.data.data; |
|
|
for (const give of allData) { |
|
|
for (const give of allData) { |
|
|
if (give.unit == "HUR") { |
|
|
const recipDid: string = give.recipientDid; |
|
|
const recipDid: string = give.recipientDid; |
|
|
if (recipDid && give.unit == "HUR") { |
|
|
if (give.amountConfirmed) { |
|
|
if (give.amountConfirmed) { |
|
|
const prevAmount = contactConfirmed[recipDid] || 0; |
|
|
const prevAmount = contactConfirmed[recipDid] || 0; |
|
|
contactConfirmed[recipDid] = prevAmount + give.amount; |
|
|
contactConfirmed[recipDid] = prevAmount + give.amount; |
|
@ -339,7 +347,6 @@ export default class ContactsView extends Vue { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
//console.log("Done retrieving gives", contactConfirmed); |
|
|
|
|
|
this.givenByMeDescriptions = contactDescriptions; |
|
|
this.givenByMeDescriptions = contactDescriptions; |
|
|
this.givenByMeConfirmed = contactConfirmed; |
|
|
this.givenByMeConfirmed = contactConfirmed; |
|
|
this.givenByMeUnconfirmed = contactUnconfirmed; |
|
|
this.givenByMeUnconfirmed = contactUnconfirmed; |
|
|