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