|
@ -400,7 +400,6 @@ import { Component, Vue } from "vue-facing-decorator"; |
|
|
import { useClipboard } from "@vueuse/core"; |
|
|
import { useClipboard } from "@vueuse/core"; |
|
|
import { Router } from "vue-router"; |
|
|
import { Router } from "vue-router"; |
|
|
|
|
|
|
|
|
import GiftedDialog from "@/components/GiftedDialog.vue"; |
|
|
|
|
|
import QuickNav from "@/components/QuickNav.vue"; |
|
|
import QuickNav from "@/components/QuickNav.vue"; |
|
|
import { NotificationIface } from "@/constants/app"; |
|
|
import { NotificationIface } from "@/constants/app"; |
|
|
import { accountsDB, db } from "@/db/index"; |
|
|
import { accountsDB, db } from "@/db/index"; |
|
@ -408,18 +407,13 @@ import { Account } 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 * as serverUtil from "@/libs/endorserServer"; |
|
|
import * as serverUtil from "@/libs/endorserServer"; |
|
|
import { |
|
|
import { displayAmount } from "@/libs/endorserServer"; |
|
|
displayAmount, |
|
|
|
|
|
GenericCredWrapper, |
|
|
|
|
|
GiverReceiverInputInfo, |
|
|
|
|
|
OfferVerifiableCredential, |
|
|
|
|
|
} from "@/libs/endorserServer"; |
|
|
|
|
|
import * as libsUtil from "@/libs/util"; |
|
|
import * as libsUtil from "@/libs/util"; |
|
|
import { isGiveAction } from "@/libs/util"; |
|
|
import { isGiveAction } from "@/libs/util"; |
|
|
|
|
|
|
|
|
@Component({ |
|
|
@Component({ |
|
|
methods: { displayAmount }, |
|
|
methods: { displayAmount }, |
|
|
components: { GiftedDialog, QuickNav }, |
|
|
components: { QuickNav }, |
|
|
}) |
|
|
}) |
|
|
export default class ClaimView extends Vue { |
|
|
export default class ClaimView extends Vue { |
|
|
$notify!: (notification: NotificationIface, timeout?: number) => void; |
|
|
$notify!: (notification: NotificationIface, timeout?: number) => void; |
|
@ -771,20 +765,6 @@ export default class ClaimView extends Vue { |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
openFulfillGiftDialog() { |
|
|
|
|
|
const giver: GiverReceiverInputInfo = { |
|
|
|
|
|
did: libsUtil.offerGiverDid( |
|
|
|
|
|
this.veriClaim as GenericCredWrapper<OfferVerifiableCredential>, |
|
|
|
|
|
), |
|
|
|
|
|
}; |
|
|
|
|
|
(this.$refs.customGiveDialog as GiftedDialog).open( |
|
|
|
|
|
giver, |
|
|
|
|
|
undefined, |
|
|
|
|
|
this.giveDetails.handleId, |
|
|
|
|
|
"Offer fulfilled by " + (giver?.name || "someone not named"), |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
copyToClipboard(name: string, text: string) { |
|
|
copyToClipboard(name: string, text: string) { |
|
|
useClipboard() |
|
|
useClipboard() |
|
|
.copy(text) |
|
|
.copy(text) |
|
|