Skip to content

Commit

Permalink
Merge pull request #55 from Kalipo-BV/#50-#52-update-parameters
Browse files Browse the repository at this point in the history
Datamodel changed from string to array when voting
  • Loading branch information
WessFlo authored Jan 19, 2023
2 parents a0faa27 + b142109 commit 23eebaf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion components/auton_proposal/AutonProposalSubmit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ export default {
}
else if (this.step == "questions" && this.selectedProposalType == "questionnaire") {
this.step = "question-answer"
console.log(this.titleMessage, this.descriptionMessage)
console.log("questions", this.choicesMessage)
}
else if (this.step == "question-answer" && this.selectedProposalType == "questionnaire") {
this.step = "check-out";
Expand Down Expand Up @@ -353,7 +355,7 @@ export default {
this.transaction.assetId = 1;
this.transaction.assets = asset;
}
//questionnaire data that gets send when chosen:
// questionnaire data that gets send when chosen:
else if (this.step == "sign" && this.selectedProposalType == "questionnaire") {
const autonWrapper = await this.$invoke("auton:getByID", { id: this.autonId });
this.uri = `/auton/${this.autonName.replace(" ", "_")}/proposal/${autonWrapper.result.proposals.length + 1}/campaigning`;
Expand Down
6 changes: 3 additions & 3 deletions pages/auton/_autonId/proposal/_proposalId/voting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export default {
methods: {

getAnswerValue(value){
this.transaction.assets.answer = value
this.transaction.assets.answer = [[value]];
this.chipText = value
this.dialog = true;
},
Expand All @@ -432,12 +432,12 @@ export default {
},
accept() {
this.chipText = "In favor";
this.transaction.assets.answer = "ACCEPT";
this.transaction.assets.answer = [[ACCEPT]];
this.dialog = true;
},
refuse() {
this.chipText = "Against";
this.transaction.assets.answer = "REFUSE";
this.transaction.assets.answer = [[REFUSE]];
this.dialog = true;
}
}
Expand Down

0 comments on commit 23eebaf

Please sign in to comment.