Fix: pass project info

In GiftingDialog, project information is passed along if:
- Selecting "Show All" to go to ContactGiftingView
- Selecting "Photos and Other Options" to go to GiftedDetailsView
This commit is contained in:
Jose Olarte III
2025-06-13 20:52:26 +08:00
parent bf7bb3209a
commit e23e302695
2 changed files with 25 additions and 6 deletions

View File

@@ -97,6 +97,9 @@ export default class ContactGiftingView extends Vue {
description = "";
projectId = "";
prompt = "";
recipientProjectName = "";
recipientProjectImage = "";
recipientProjectHandleId = "";
async created() {
try {
@@ -124,7 +127,10 @@ export default class ContactGiftingView extends Vue {
);
}
this.projectId = (this.$route.query["projectId"] as string) || "";
this.projectId = (this.$route.query["recipientProjectId"] as string) || "";
this.recipientProjectName = (this.$route.query["recipientProjectName"] as string) || "";
this.recipientProjectImage = (this.$route.query["recipientProjectImage"] as string) || "";
this.recipientProjectHandleId = (this.$route.query["recipientProjectHandleId"] as string) || "";
this.prompt = (this.$route.query["prompt"] as string) ?? this.prompt;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -146,7 +152,12 @@ export default class ContactGiftingView extends Vue {
openDialog(giver?: GiverReceiverInputInfo | "Unnamed") {
const recipient = this.projectId
? undefined
? {
did: this.recipientProjectHandleId,
name: this.recipientProjectName,
image: this.recipientProjectImage,
handleId: this.recipientProjectHandleId
}
: { did: this.activeDid, name: "you" };
if (giver === "Unnamed") {