forked from jsnbuchanan/crowd-funder-for-time-pwa
change the "give" action on contact page to use dialog box
This commit is contained in:
@@ -363,7 +363,7 @@ import * as libsUtil from "@/libs/util";
|
||||
import {
|
||||
BLANK_GENERIC_SERVER_RECORD,
|
||||
GenericCredWrapper,
|
||||
GiverInputInfo,
|
||||
GiverReceiverInputInfo,
|
||||
GiveSummaryRecord,
|
||||
OfferSummaryRecord,
|
||||
PlanSummaryRecord,
|
||||
@@ -697,7 +697,7 @@ export default class ProjectViewView extends Vue {
|
||||
);
|
||||
}
|
||||
|
||||
openGiftDialog(contact?: GiverInputInfo) {
|
||||
openGiftDialog(contact?: GiverReceiverInputInfo) {
|
||||
(this.$refs.customGiveDialog as GiftedDialog).open(contact);
|
||||
}
|
||||
|
||||
@@ -736,10 +736,14 @@ export default class ProjectViewView extends Vue {
|
||||
claim: offer.fullClaim,
|
||||
issuer: offer.offeredByDid,
|
||||
};
|
||||
const giver: GiverInputInfo = {
|
||||
const giver: GiverReceiverInputInfo = {
|
||||
did: libsUtil.offerGiverDid(offerRecord),
|
||||
};
|
||||
(this.$refs.customGiveDialog as GiftedDialog).open(giver, offer.handleId);
|
||||
(this.$refs.customGiveDialog as GiftedDialog).open(
|
||||
giver,
|
||||
undefined,
|
||||
offer.handleId,
|
||||
);
|
||||
}
|
||||
|
||||
// return an HTTPS URL if it's not a global URL
|
||||
|
||||
Reference in New Issue
Block a user