refactor project screen: add action to record a give from it, and add checks to give confirmation buttons

This commit is contained in:
2024-11-28 11:26:51 -07:00
parent 60eb4a9dc7
commit 8db7ac3f6f
8 changed files with 429 additions and 181 deletions

View File

@@ -47,7 +47,8 @@
giverDid: giver?.did,
giverName: giver?.name,
offerId,
fulfillsProjectId: projectId,
fulfillsProjectId: toProjectId,
providerProjectId: fromProjectId,
recipientDid: receiver?.did,
recipientName: receiver?.name,
unitCode,
@@ -98,7 +99,8 @@ import { Contact } from "@/db/tables/contacts";
export default class GiftedDialog extends Vue {
$notify!: (notification: NotificationIface, timeout?: number) => void;
@Prop projectId = "";
@Prop fromProjectId = "";
@Prop toProjectId = "";
activeDid = "";
allContacts: Array<Contact> = [];
@@ -294,9 +296,11 @@ export default class GiftedDialog extends Vue {
description,
amount,
unitCode,
this.projectId,
this.toProjectId,
this.offerId,
this.isTrade,
undefined,
this.fromProjectId,
);
if (