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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user