Giver-recipient controls

- Dialog now shows separate cards for giver and recipient
- Ability to change giver and/or recipient
- Project giver/recipient is locked in ProjectView (context reinforcement)
This commit is contained in:
Jose Olarte III
2025-06-19 21:16:56 +08:00
parent 576879513b
commit 2a4667b8f8
5 changed files with 464 additions and 146 deletions

View File

@@ -127,10 +127,14 @@ export default class ContactGiftingView extends Vue {
);
}
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.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
@@ -156,10 +160,10 @@ export default class ContactGiftingView extends Vue {
did: this.recipientProjectHandleId,
name: this.recipientProjectName,
image: this.recipientProjectImage,
handleId: this.recipientProjectHandleId
handleId: this.recipientProjectHandleId,
}
: { did: this.activeDid, name: "you" };
if (giver === "Unnamed") {
// Special case: Pass undefined to trigger Step 1, but with "Unnamed" pre-selected
(this.$refs.customDialog as GiftedDialog).open(