forked from trent_larson/crowd-funder-for-time-pwa
Fix ClaimView affirm delivery action
- Add offer context support to gifting flow - Add offerId prop to EntitySelectionStep for offer fulfillment context - Pass offerId through GiftedDialog to EntitySelectionStep - Update ContactGiftingView to handle offerId from route query parameters - Extract offer details (description, amount, unitCode) for pre-population
This commit is contained in:
@@ -146,6 +146,10 @@ export default class EntitySelectionStep extends Vue {
|
||||
@Prop({ default: "HUR" })
|
||||
unitCode!: string;
|
||||
|
||||
/** Offer ID for context when fulfilling an offer */
|
||||
@Prop({ default: "" })
|
||||
offerId!: string;
|
||||
|
||||
/** Notification function from parent component */
|
||||
@Prop()
|
||||
notify?: (notification: NotificationIface, timeout?: number) => void;
|
||||
@@ -242,6 +246,7 @@ export default class EntitySelectionStep extends Vue {
|
||||
description: this.description,
|
||||
amountInput: this.amountInput,
|
||||
unitCode: this.unitCode,
|
||||
offerId: this.offerId,
|
||||
...(this.stepType === "giver"
|
||||
? {
|
||||
recipientProjectId: this.toProjectId || "",
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
:description="description"
|
||||
:amount-input="amountInput"
|
||||
:unit-code="unitCode"
|
||||
:offer-id="offerId"
|
||||
:notify="$notify"
|
||||
@entity-selected="handleEntitySelected"
|
||||
@cancel="cancel"
|
||||
@@ -233,6 +234,7 @@ export default class GiftedDialog extends Vue {
|
||||
this.giver = giver;
|
||||
this.receiver = receiver;
|
||||
this.offerId = offerId || "";
|
||||
console.log("offerId", this.offerId);
|
||||
this.prompt = prompt || "";
|
||||
this.description = description || "";
|
||||
this.amountInput = amountInput || "0";
|
||||
|
||||
Reference in New Issue
Block a user