remove ability to mark a 'trade', ensuring this only sends & retrieves gifts

This commit is contained in:
2025-05-09 21:37:48 -06:00
parent 8172bc34c0
commit 776cf14bf8
3 changed files with 8 additions and 15 deletions

View File

@@ -215,11 +215,6 @@
</div>
</div>
<div class="mt-8 flex">
<input v-model="isTrade" type="checkbox" class="h-6 w-6 mr-2" />
<label class="text-sm mt-1">This was a trade (not a gift)</label>
</div>
<div v-if="showGeneralAdvanced" class="mt-4 flex">
<router-link
:to="{
@@ -307,7 +302,6 @@ export default class GiftedDetails extends Vue {
giverName = "";
hideBackButton = false;
imageUrl = "";
isTrade = false;
message = "";
offerId = "";
prevCredToEdit?: GenericCredWrapper<GiveVerifiableCredential>;
@@ -790,7 +784,7 @@ export default class GiftedDetails extends Vue {
this.unitCode,
fulfillsProjectId,
this.offerId,
this.isTrade,
false,
this.imageUrl,
this.providerProjectId,
);
@@ -806,7 +800,7 @@ export default class GiftedDetails extends Vue {
this.unitCode,
fulfillsProjectId,
this.offerId,
this.isTrade,
false,
this.imageUrl,
this.providerProjectId,
);
@@ -833,7 +827,7 @@ export default class GiftedDetails extends Vue {
group: "alert",
type: "success",
title: "Success",
text: `That ${this.isTrade ? "trade" : "gift"} was recorded.`,
text: `That gift was recorded.`,
},
3000,
);
@@ -878,7 +872,7 @@ export default class GiftedDetails extends Vue {
this.unitCode,
fulfillsProjectId,
this.offerId,
this.isTrade,
false,
this.imageUrl,
this.providerProjectId,
this.prevCredToEdit?.id as string,