|
@ -77,8 +77,7 @@ import GiftedDialog from "@/components/GiftedDialog.vue"; |
|
|
import QuickNav from "@/components/QuickNav.vue"; |
|
|
import QuickNav from "@/components/QuickNav.vue"; |
|
|
import EntityIcon from "@/components/EntityIcon.vue"; |
|
|
import EntityIcon from "@/components/EntityIcon.vue"; |
|
|
import { NotificationIface } from "@/constants/app"; |
|
|
import { NotificationIface } from "@/constants/app"; |
|
|
import { db, accountsDB } from "@/db/index"; |
|
|
import { db } from "@/db/index"; |
|
|
import { AccountsSchema } from "@/db/tables/accounts"; |
|
|
|
|
|
import { Contact } from "@/db/tables/contacts"; |
|
|
import { Contact } from "@/db/tables/contacts"; |
|
|
import { MASTER_SETTINGS_KEY, Settings } from "@/db/tables/settings"; |
|
|
import { MASTER_SETTINGS_KEY, Settings } from "@/db/tables/settings"; |
|
|
import { GiverReceiverInputInfo } from "@/libs/endorserServer"; |
|
|
import { GiverReceiverInputInfo } from "@/libs/endorserServer"; |
|
@ -92,13 +91,8 @@ export default class ContactGiftingView extends Vue { |
|
|
activeDid = ""; |
|
|
activeDid = ""; |
|
|
allContacts: Array<Contact> = []; |
|
|
allContacts: Array<Contact> = []; |
|
|
apiServer = ""; |
|
|
apiServer = ""; |
|
|
accounts: typeof AccountsSchema; |
|
|
|
|
|
projectId = localStorage.getItem("projectId") || ""; |
|
|
projectId = localStorage.getItem("projectId") || ""; |
|
|
|
|
|
|
|
|
async beforeCreate() { |
|
|
|
|
|
accountsDB.open(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async created() { |
|
|
async created() { |
|
|
try { |
|
|
try { |
|
|
await db.open(); |
|
|
await db.open(); |
|
|