|
@ -57,7 +57,7 @@ |
|
|
<td class="p-1"> |
|
|
<td class="p-1"> |
|
|
<span v-if="record.agentDid == contact.did"> |
|
|
<span v-if="record.agentDid == contact.did"> |
|
|
<div class="font-bold"> |
|
|
<div class="font-bold"> |
|
|
{{ record.amount }} {{ record.unit }} |
|
|
{{ displayAmount(record.unit, record.amount) }} |
|
|
<span v-if="record.amountConfirmed" title="Confirmed"> |
|
|
<span v-if="record.amountConfirmed" title="Confirmed"> |
|
|
<fa icon="circle-check" class="text-green-600 fa-fw" /> |
|
|
<fa icon="circle-check" class="text-green-600 fa-fw" /> |
|
|
</span> |
|
|
</span> |
|
@ -81,7 +81,7 @@ |
|
|
<td class="p-1"> |
|
|
<td class="p-1"> |
|
|
<span v-if="record.agentDid != contact.did"> |
|
|
<span v-if="record.agentDid != contact.did"> |
|
|
<div class="font-bold"> |
|
|
<div class="font-bold"> |
|
|
{{ record.amount }} {{ record.unit }} |
|
|
{{ displayAmount(record.unit, record.amount) }} |
|
|
<span v-if="record.amountConfirmed" title="Confirmed"> |
|
|
<span v-if="record.amountConfirmed" title="Confirmed"> |
|
|
<fa icon="circle-check" class="text-green-600 fa-fw" /> |
|
|
<fa icon="circle-check" class="text-green-600 fa-fw" /> |
|
|
</span> |
|
|
</span> |
|
@ -119,6 +119,7 @@ import { MASTER_SETTINGS_KEY } from "@/db/tables/settings"; |
|
|
import { accessToken, SimpleSigner } from "@/libs/crypto"; |
|
|
import { accessToken, SimpleSigner } from "@/libs/crypto"; |
|
|
import { |
|
|
import { |
|
|
AgreeVerifiableCredential, |
|
|
AgreeVerifiableCredential, |
|
|
|
|
|
displayAmount, |
|
|
GiveSummaryRecord, |
|
|
GiveSummaryRecord, |
|
|
GiveVerifiableCredential, |
|
|
GiveVerifiableCredential, |
|
|
SCHEMA_ORG_CONTEXT, |
|
|
SCHEMA_ORG_CONTEXT, |
|
@ -134,6 +135,8 @@ export default class ContactAmountssView extends Vue { |
|
|
giveRecords: Array<GiveSummaryRecord> = []; |
|
|
giveRecords: Array<GiveSummaryRecord> = []; |
|
|
numAccounts = 0; |
|
|
numAccounts = 0; |
|
|
|
|
|
|
|
|
|
|
|
displayAmount = displayAmount; |
|
|
|
|
|
|
|
|
async beforeCreate() { |
|
|
async beforeCreate() { |
|
|
await accountsDB.open(); |
|
|
await accountsDB.open(); |
|
|
this.numAccounts = await accountsDB.accounts.count(); |
|
|
this.numAccounts = await accountsDB.accounts.count(); |
|
|