|
@ -301,7 +301,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script lang="ts"> |
|
|
<script lang="ts"> |
|
|
import {Axios, AxiosError} from "axios"; |
|
|
import { AxiosError } from "axios"; |
|
|
import { IndexableType } from "dexie"; |
|
|
import { IndexableType } from "dexie"; |
|
|
import * as R from "ramda"; |
|
|
import * as R from "ramda"; |
|
|
import { IIdentifier } from "@veramo/core"; |
|
|
import { IIdentifier } from "@veramo/core"; |
|
@ -309,7 +309,7 @@ import { Component, Vue } from "vue-facing-decorator"; |
|
|
import { Router } from "vue-router"; |
|
|
import { Router } from "vue-router"; |
|
|
|
|
|
|
|
|
import { AppString, NotificationIface } from "@/constants/app"; |
|
|
import { AppString, NotificationIface } from "@/constants/app"; |
|
|
import {accountsDB, db, NonsensitiveDexie} from "@/db/index"; |
|
|
import { accountsDB, db } from "@/db/index"; |
|
|
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 { accessToken, getContactPayloadFromJwtUrl } from "@/libs/crypto"; |
|
|
import { accessToken, getContactPayloadFromJwtUrl } from "@/libs/crypto"; |
|
@ -330,7 +330,6 @@ import OfferDialog from "@/components/OfferDialog.vue"; |
|
|
import { Account } from "@/db/tables/accounts"; |
|
|
import { Account } from "@/db/tables/accounts"; |
|
|
|
|
|
|
|
|
import { Buffer } from "buffer/"; |
|
|
import { Buffer } from "buffer/"; |
|
|
import {getIdentity} from "@/libs/util"; |
|
|
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
@Component({ |
|
|
components: { GiftedDialog, EntityIcon, OfferDialog, QuickNav }, |
|
|
components: { GiftedDialog, EntityIcon, OfferDialog, QuickNav }, |
|
@ -825,15 +824,7 @@ export default class ContactsView extends Vue { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
async register(contact: Contact) { |
|
|
async register(contact: Contact) { |
|
|
this.$notify( |
|
|
this.$notify({ group: "alert", type: "toast", title: "Sent..." }, 1000); |
|
|
{ |
|
|
|
|
|
group: "alert", |
|
|
|
|
|
type: "toast", |
|
|
|
|
|
text: "", |
|
|
|
|
|
title: "Registration submitted...", |
|
|
|
|
|
}, |
|
|
|
|
|
1000, |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
const regResult = await register( |
|
|
const regResult = await register( |
|
|