switch BVC-meeting-end gift to be from the plan, and add display of providers on claim-view page

This commit is contained in:
2024-09-28 17:31:58 -06:00
parent a271d9c206
commit 7c70e699d8
6 changed files with 110 additions and 7 deletions

View File

@@ -97,7 +97,7 @@
<h2 class="text-2xl m-2">Anything else?</h2>
<div class="m-2 flex">
<input type="checkbox" v-model="someoneGave" class="h-6 w-6" />
<span class="pb-2 pl-2 pr-2">Someone else gave</span>
<span class="pb-2 pl-2 pr-2">The group provided</span>
<span v-if="someoneGave">
<input
type="text"
@@ -305,6 +305,12 @@ export default class QuickActionBvcBeginView extends Vue {
// now send the give for the description
let giveSucceeded = false;
if (this.someoneGave) {
const providers: Array<GenericVerifiableCredential> = [
{
"@type": "PlanAction",
identifier: BVC_MEETUPS_PROJECT_CLAIM_ID,
},
];
const giveResult = await createAndSubmitGive(
axios,
this.apiServer,
@@ -314,7 +320,11 @@ export default class QuickActionBvcBeginView extends Vue {
this.description,
undefined,
undefined,
BVC_MEETUPS_PROJECT_CLAIM_ID,
undefined,
undefined,
false,
undefined,
providers,
);
giveSucceeded = giveResult.type === "success";
if (!giveSucceeded) {