|
|
@ -35,7 +35,7 @@ |
|
|
|
<textarea |
|
|
|
class="block w-full rounded border border-slate-400 mb-2 px-3 py-2" |
|
|
|
placeholder="What is offered" |
|
|
|
v-model="itemDescription" |
|
|
|
v-model="descriptionOfItem" |
|
|
|
data-testId="itemDescription" |
|
|
|
/> |
|
|
|
<div class="flex flex-row justify-center"> |
|
|
@ -74,7 +74,7 @@ |
|
|
|
<textarea |
|
|
|
class="w-full border border-slate-400 px-3 py-2 rounded-r" |
|
|
|
placeholder="Prerequisites, other people to include, etc." |
|
|
|
v-model="conditionDescription" |
|
|
|
v-model="descriptionOfCondition" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
|
|
|
@ -207,14 +207,14 @@ export default class OfferDetailsView extends Vue { |
|
|
|
apiServer = ""; |
|
|
|
|
|
|
|
amountInput = "0"; |
|
|
|
conditionDescription = ""; |
|
|
|
itemDescription = ""; |
|
|
|
descriptionOfCondition = ""; |
|
|
|
descriptionOfItem = ""; |
|
|
|
destinationPathAfter = ""; |
|
|
|
hideBackButton = false; |
|
|
|
message = ""; |
|
|
|
offeredToProject = false; |
|
|
|
offeredToRecipient = false; |
|
|
|
offererDid: string | undefined; |
|
|
|
hideBackButton = false; |
|
|
|
message = ""; |
|
|
|
offerId = ""; |
|
|
|
prevCredToEdit?: GenericCredWrapper<OfferVerifiableCredential>; |
|
|
|
projectId = ""; |
|
|
@ -255,12 +255,12 @@ export default class OfferDetailsView extends Vue { |
|
|
|
this.prevCredToEdit?.claim?.includesObject?.unitCode || |
|
|
|
this.unitCode) as string; |
|
|
|
|
|
|
|
this.conditionDescription = |
|
|
|
this.prevCredToEdit?.claim?.description || this.conditionDescription; |
|
|
|
this.itemDescription = |
|
|
|
this.descriptionOfCondition = |
|
|
|
this.prevCredToEdit?.claim?.description || this.descriptionOfCondition; |
|
|
|
this.descriptionOfItem = |
|
|
|
(this.$route as Router).query["description"] || |
|
|
|
this.prevCredToEdit?.claim?.itemOffered?.description || |
|
|
|
this.itemDescription; |
|
|
|
this.descriptionOfItem; |
|
|
|
this.destinationPathAfter = (this.$route as Router).query[ |
|
|
|
"destinationPathAfter" |
|
|
|
]; |
|
|
@ -400,7 +400,7 @@ export default class OfferDetailsView extends Vue { |
|
|
|
); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!this.itemDescription && !parseFloat(this.amountInput)) { |
|
|
|
if (!this.descriptionOfItem && !parseFloat(this.amountInput)) { |
|
|
|
this.$notify( |
|
|
|
{ |
|
|
|
group: "alert", |
|
|
@ -500,10 +500,10 @@ export default class OfferDetailsView extends Vue { |
|
|
|
this.apiServer, |
|
|
|
this.prevCredToEdit, |
|
|
|
this.activeDid, |
|
|
|
this.itemDescription, |
|
|
|
this.descriptionOfItem, |
|
|
|
parseFloat(this.amountInput), |
|
|
|
this.unitCode, |
|
|
|
this.conditionDescription, |
|
|
|
this.descriptionOfCondition, |
|
|
|
this.validThroughDateInput, |
|
|
|
recipientDid, |
|
|
|
projectId, |
|
|
@ -513,10 +513,10 @@ export default class OfferDetailsView extends Vue { |
|
|
|
this.axios, |
|
|
|
this.apiServer, |
|
|
|
this.activeDid, |
|
|
|
this.itemDescription, |
|
|
|
this.descriptionOfItem, |
|
|
|
parseFloat(this.amountInput), |
|
|
|
this.unitCode, |
|
|
|
this.conditionDescription, |
|
|
|
this.descriptionOfCondition, |
|
|
|
this.validThroughDateInput, |
|
|
|
recipientDid, |
|
|
|
projectId, |
|
|
@ -580,10 +580,10 @@ export default class OfferDetailsView extends Vue { |
|
|
|
this.prevCredToEdit?.claim as OfferVerifiableCredential, |
|
|
|
this.activeDid, |
|
|
|
recipientDid, |
|
|
|
this.itemDescription, |
|
|
|
this.descriptionOfItem, |
|
|
|
parseFloat(this.amountInput), |
|
|
|
this.unitCode, |
|
|
|
this.conditionDescription, |
|
|
|
this.descriptionOfCondition, |
|
|
|
projectId, |
|
|
|
this.validThroughDateInput, |
|
|
|
this.prevCredToEdit?.id as string, |
|
|
|