From b14ca820ac0b61653df72cfb5f92d6e28ed87bb4 Mon Sep 17 00:00:00 2001 From: Katie Date: Wed, 21 Sep 2022 15:29:01 -0400 Subject: [PATCH] CSR-762 Fix estimate page, start on question-chain --- .../button-question/button-question.vue | 7 ++-- .../input-button-wrapper.vue | 9 ++--- .../question-chain/question-chain.vue | 40 +++++++++++++++++-- src/layouts/estimate/estimate.vue | 5 +-- src/layouts/part-questions/part-questions.vue | 9 ++++- src/ux-components/list-button/list-button.vue | 1 + 6 files changed, 54 insertions(+), 17 deletions(-) diff --git a/src/common-components/button-question/button-question.vue b/src/common-components/button-question/button-question.vue index 5b0808a9c..5fe1aa6e4 100644 --- a/src/common-components/button-question/button-question.vue +++ b/src/common-components/button-question/button-question.vue @@ -261,9 +261,10 @@ export default { // this.$emit("isCheckedChanged", val); // }, handleAnswerChange(eventValue) { - // console.log({ - // bqEvent: eventValue - // }) + console.log({ + bqEvent: eventValue + }) + this.$emit("change", eventValue); this.$emit("update:modelValue", eventValue); }, }, diff --git a/src/common-components/input-button-wrapper/input-button-wrapper.vue b/src/common-components/input-button-wrapper/input-button-wrapper.vue index 3fd39fbcf..57fe58505 100644 --- a/src/common-components/input-button-wrapper/input-button-wrapper.vue +++ b/src/common-components/input-button-wrapper/input-button-wrapper.vue @@ -102,7 +102,7 @@ export default { // const isSingleAnswerPreselected = this.modelValue?.length === 1 && this.isChecked; if (this.isChecked) { - console.log("HI THERE"); + // console.log("HI THERE"); this.handleChange(this.modelValue); } }, @@ -241,7 +241,7 @@ export default { this.valueToEmit = newValue; } else { - console.log("not multi"); + // console.log("not multi"); this.valueToEmit = this.value; } @@ -253,7 +253,7 @@ export default { // } }, handleClick(e) { - console.log("handleClick"); + // console.log("handleClick"); this.handleSelectionChange(e); // console.log("HC"); // console.log({ @@ -335,8 +335,7 @@ export default { }; - -