Fix GiftedDialog functionality

- Add description, amountInput, and unitCode parameters to GiftedDialog.open()
- Pass offer details to GiftedDialog in ProjectViewView
- Update ContactsView to handle new GiftedDialog parameters
This commit is contained in:
Jose Olarte III
2025-07-31 17:28:46 +08:00
parent 2a32903326
commit 433f3c1154
3 changed files with 21 additions and 4 deletions

View File

@@ -222,14 +222,19 @@ export default class GiftedDialog extends Vue {
receiver?: libsUtil.GiverReceiverInputInfo,
offerId?: string,
prompt?: string,
description?: string,
amountInput?: string,
unitCode?: string,
callbackOnSuccess: (amount: number) => void = () => {},
) {
this.giver = giver;
this.prompt = prompt || "";
this.receiver = receiver;
this.amountInput = "0";
this.callbackOnSuccess = callbackOnSuccess;
this.offerId = offerId || "";
this.prompt = prompt || "";
this.description = description || "";
this.amountInput = amountInput || "0";
this.unitCode = unitCode || "HUR";
this.callbackOnSuccess = callbackOnSuccess;
this.firstStep = !giver;
this.stepType = "giver";