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

@@ -91,7 +91,15 @@
</li>
<li v-if="allContacts.length > 0">
<router-link
:to="{ name: 'contact-gift' }"
:to="{
name: 'contact-gift',
query: {
recipientProjectId: toProjectId,
recipientProjectName: giver?.name,
recipientProjectImage: giver?.image,
recipientProjectHandleId: giver?.handleId
}
}"
class="cursor-pointer"
>
<font-awesome icon="circle-right" class="text-blue-500 text-5xl mb-1" />
@@ -503,15 +511,15 @@ export default class GiftedDialog extends Vue {
this.apiServer,
this.activeDid,
this.showProjects ? undefined : giverDid as string,
recipientDid as string,
this.showProjects && this.isFromProjectView ? this.giver?.handleId : recipientDid as string,
description,
amount,
unitCode,
this.toProjectId,
this.showProjects && this.isFromProjectView ? this.giver?.handleId : this.toProjectId,
this.offerId,
false,
undefined,
this.showProjects ? this.giver?.handleId : undefined,
this.showProjects && !this.isFromProjectView ? this.giver?.handleId : undefined,
);
if (!result.success) {