Benefitted From This Project
@@ -1241,21 +1185,26 @@ export default class ProjectViewView extends Vue {
// Immediately select "Unnamed" and move to Step 2
(this.$refs.giveDialogToThis as GiftedDialog).selectGiver();
} else {
+ // Set only the project as recipient, allowing user to select giver in Step 1
(this.$refs.giveDialogToThis as GiftedDialog).open(
- contact,
undefined,
+ { did: this.issuer, name: this.name, handleId: this.projectId, image: this.imageUrl },
undefined,
- (contact?.name || "Someone not named") + ` gave to this project`,
+ `Given to ${this.name}`,
);
}
}
openGiftDialogFromProject() {
+ // Set the project as giver and the current user as recipient
(this.$refs.giveDialogFromThis as GiftedDialog).open(
- undefined,
+ { did: undefined, name: this.name, handleId: this.projectId, image: this.imageUrl },
{ did: this.activeDid, name: "You" },
undefined,
- `This project gave to you`,
+ `${this.name} gave to you`,
+ undefined,
+ undefined,
+ true
);
}
@@ -1530,3 +1479,4 @@ export default class ProjectViewView extends Vue {
}
}
+