|
|
@ -135,13 +135,14 @@ |
|
|
|
import { AxiosError } from "axios"; |
|
|
|
import * as didJwt from "did-jwt"; |
|
|
|
import * as R from "ramda"; |
|
|
|
import { IIdentifier } from "@veramo/core"; |
|
|
|
import { Options, Vue } from "vue-class-component"; |
|
|
|
|
|
|
|
import { AppString } from "@/constants/app"; |
|
|
|
import { accessToken, SimpleSigner } from "@/libs/crypto"; |
|
|
|
import { IIdentifier } from "@veramo/core"; |
|
|
|
import { accountsDB, db } from "../db"; |
|
|
|
import { Contact } from "../db/tables/contacts"; |
|
|
|
import { accountsDB, db } from "@/db"; |
|
|
|
import { Contact } from "@/db/tables/contacts"; |
|
|
|
import { MASTER_SETTINGS_KEY } from "@/db/tables/settings"; |
|
|
|
|
|
|
|
export interface GiveVerifiableCredential { |
|
|
|
"@context": string; |
|
|
@ -174,13 +175,12 @@ export default class ContactsView extends Vue { |
|
|
|
this.identity = JSON.parse(accounts[0].identity); |
|
|
|
|
|
|
|
await db.open(); |
|
|
|
this.contacts = await db.contacts.toArray(); |
|
|
|
|
|
|
|
const params = new URLSearchParams(window.location.search); |
|
|
|
this.showGiveTotals = params.get("showGiveTotals") == "true"; |
|
|
|
const settings = await db.settings.get(MASTER_SETTINGS_KEY); |
|
|
|
this.showGiveTotals = !!settings?.showContactGivesInline; |
|
|
|
if (this.showGiveTotals) { |
|
|
|
this.loadGives(); |
|
|
|
} |
|
|
|
this.contacts = await db.contacts.toArray(); |
|
|
|
} |
|
|
|
|
|
|
|
async onClickNewContact(): Promise<void> { |
|
|
|