CSR-762 Change requests
This commit is contained in:
parent
ea053534ca
commit
0581fcdc9e
13 changed files with 2 additions and 46 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"tabWidth": 4,
|
"tabWidth": 2,
|
||||||
"bracketSameLine": true
|
"bracketSameLine": true
|
||||||
}
|
}
|
||||||
|
|
@ -50,8 +50,6 @@
|
||||||
:validationRules="validationRules"
|
:validationRules="validationRules"
|
||||||
:textPosition="textPosition"
|
:textPosition="textPosition"
|
||||||
:selectOnKeypress="selectOnKeypress"
|
:selectOnKeypress="selectOnKeypress"
|
||||||
@blur="handleBlur"
|
|
||||||
@focus="handleFocus"
|
|
||||||
@buttonClicked="handleAnswerChange" />
|
@buttonClicked="handleAnswerChange" />
|
||||||
<!-- For nested questions -->
|
<!-- For nested questions -->
|
||||||
<transition name="fade" mode="out-in">
|
<transition name="fade" mode="out-in">
|
||||||
|
|
@ -161,7 +159,7 @@ export default {
|
||||||
getComponentWrapperClasses() {
|
getComponentWrapperClasses() {
|
||||||
let classes = "";
|
let classes = "";
|
||||||
|
|
||||||
classes += this.isWid ? "col-12" : "col";
|
classes += this.isWide ? "col-12" : "col";
|
||||||
|
|
||||||
if (this.buttonType == "radio") {
|
if (this.buttonType == "radio") {
|
||||||
classes += " radio-button-container";
|
classes += " radio-button-container";
|
||||||
|
|
@ -224,17 +222,6 @@ export default {
|
||||||
this.$emit("buttonQuestionChange", primaryAnswerValue);
|
this.$emit("buttonQuestionChange", primaryAnswerValue);
|
||||||
this.$emit("update:modelValue", primaryAnswerValue);
|
this.$emit("update:modelValue", primaryAnswerValue);
|
||||||
},
|
},
|
||||||
handleBlur() {
|
|
||||||
// this.lastFocusedInputGroup = this.groupName;
|
|
||||||
// window.lastFocusedInputGroup = this.groupName
|
|
||||||
// console.log("blur: ", this.groupName);
|
|
||||||
},
|
|
||||||
handleFocus() {
|
|
||||||
// console.log("focused: ", {
|
|
||||||
// groupName: this.groupName,
|
|
||||||
// lastFocusedInputGroup: this.lastFocusedInputGroup,
|
|
||||||
// });
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
listButton,
|
listButton,
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div v-for="(q, i) in questions" :key="i">
|
<div v-for="(q, i) in questions" :key="i">
|
||||||
<transition appear name="fade" mode="out-in">
|
<transition appear name="fade" mode="out-in">
|
||||||
<!-- <buttonQuestion
|
|
||||||
v-if="q.answerSelected || (q.questionSequence === currentQuestionNum)"
|
|
||||||
class="radioQuestion"
|
|
||||||
:class="(q.questionSequence === currentQuestionNum) && 'current-question'"
|
|
||||||
:questionText="q.questionText"
|
|
||||||
:answers="q.answers"
|
|
||||||
:groupName="`question-${glassIndex}-${q.questionSequence}`"
|
|
||||||
v-model="q.answerSelected"
|
|
||||||
isRequired
|
|
||||||
:validationRules="validationRules"
|
|
||||||
/> -->
|
|
||||||
<buttonQuestion
|
<buttonQuestion
|
||||||
v-if="q.answerSelected || (q.questionSequence === currentQuestionNum)"
|
v-if="q.answerSelected || (q.questionSequence === currentQuestionNum)"
|
||||||
class="radioQuestion"
|
class="radioQuestion"
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ export async function loadOrderIfPresent() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO KO isOrderDifferent and isOrderSubmitted
|
|
||||||
// Reset state if cookie says to.
|
// Reset state if cookie says to.
|
||||||
if (funnelCookie.ShouldResetState) {
|
if (funnelCookie.ShouldResetState) {
|
||||||
baseMixin.methods.dispatchStoreAction(storeActions.RESET_STATE);
|
baseMixin.methods.dispatchStoreAction(storeActions.RESET_STATE);
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,9 @@
|
||||||
<script>
|
<script>
|
||||||
import buttonQuestion from "@/common-components/button-question/button-question";
|
import buttonQuestion from "@/common-components/button-question/button-question";
|
||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
// import buttonQuestionWrapperMixin from "@/mixins/button-question-wrapper-mixin";
|
|
||||||
|
|
||||||
export default ({
|
export default ({
|
||||||
name: "replaceOptionsQuestion",
|
name: "replaceOptionsQuestion",
|
||||||
// mixins: [buttonQuestionWrapperMixin],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
replaceOptions: [],
|
replaceOptions: [],
|
||||||
|
|
|
||||||
|
|
@ -17,11 +17,9 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import buttonQuestion from "@/common-components/button-question/button-question";
|
import buttonQuestion from "@/common-components/button-question/button-question";
|
||||||
// import buttonQuestionWrapperMixin from "@/mixins/button-question-wrapper-mixin";
|
|
||||||
|
|
||||||
export default ({
|
export default ({
|
||||||
name: "windshieldChipCountQuestion",
|
name: "windshieldChipCountQuestion",
|
||||||
// mixins: [buttonQuestionWrapperMixin],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
numberOfChips: this.modelValue
|
numberOfChips: this.modelValue
|
||||||
|
|
|
||||||
|
|
@ -19,11 +19,9 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import buttonQuestion from "@/common-components/button-question/button-question";
|
import buttonQuestion from "@/common-components/button-question/button-question";
|
||||||
// import buttonQuestionWrapperMixin from "@/mixins/button-question-wrapper-mixin";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "windshieldDamageTypeQuestion",
|
name: "windshieldDamageTypeQuestion",
|
||||||
// mixins: [buttonQuestionWrapperMixin],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
selectedWindshieldDamageType: this.modelValue,
|
selectedWindshieldDamageType: this.modelValue,
|
||||||
|
|
|
||||||
|
|
@ -18,11 +18,9 @@ import buttonQuestion from "@/common-components/button-question/button-question"
|
||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
import { storeActions } from "@/constants/store-actions.js";
|
import { storeActions } from "@/constants/store-actions.js";
|
||||||
import baseMixin from "@/mixins/base-mixin.js";
|
import baseMixin from "@/mixins/base-mixin.js";
|
||||||
// import buttonQuestionWrapperMixin from "../../../mixins/button-question-wrapper-mixin";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "make-question",
|
name: "make-question",
|
||||||
// mixins: [buttonQuestionWrapperMixin],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
makes: [],
|
makes: [],
|
||||||
|
|
|
||||||
|
|
@ -19,11 +19,9 @@ import buttonQuestion from "@/common-components/button-question/button-question"
|
||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
import { storeActions } from "@/constants/store-actions.js";
|
import { storeActions } from "@/constants/store-actions.js";
|
||||||
import baseMixin from "@/mixins/base-mixin.js";
|
import baseMixin from "@/mixins/base-mixin.js";
|
||||||
import buttonQuestionWrapperMixin from "@/mixins/button-question-wrapper-mixin";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "model-question",
|
name: "model-question",
|
||||||
mixins: [buttonQuestionWrapperMixin],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
models: [],
|
models: [],
|
||||||
|
|
|
||||||
|
|
@ -19,11 +19,9 @@ import buttonQuestion from "@/common-components/button-question/button-question"
|
||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
import { storeActions } from "@/constants/store-actions.js";
|
import { storeActions } from "@/constants/store-actions.js";
|
||||||
import baseMixin from "@/mixins/base-mixin.js";
|
import baseMixin from "@/mixins/base-mixin.js";
|
||||||
// import buttonQuestionWrapperMixin from "@/mixins/button-question-wrapper-mixin";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "style-question",
|
name: "style-question",
|
||||||
// mixins: [buttonQuestionWrapperMixin],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
styles: [],
|
styles: [],
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,9 @@ import buttonQuestion from "@/common-components/button-question/button-question"
|
||||||
// Supporting files
|
// Supporting files
|
||||||
import { storeActions } from "@/constants/store-actions.js";
|
import { storeActions } from "@/constants/store-actions.js";
|
||||||
import baseMixin from "@/mixins/base-mixin.js";
|
import baseMixin from "@/mixins/base-mixin.js";
|
||||||
// import buttonQuestionWrapperMixin from "@/mixins/button-question-wrapper-mixin";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "year-question",
|
name: "year-question",
|
||||||
// mixins: [buttonQuestionWrapperMixin],
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
years: [],
|
years: [],
|
||||||
|
|
|
||||||
|
|
@ -74,9 +74,6 @@ export default {
|
||||||
const hasChildPartQuestions = this.hasChildPartQuestions(partsOrQuestions);
|
const hasChildPartQuestions = this.hasChildPartQuestions(partsOrQuestions);
|
||||||
const hasCapabilityQuestions = this.hasCapabilityQuestions(partsOrQuestions);
|
const hasCapabilityQuestions = this.hasCapabilityQuestions(partsOrQuestions);
|
||||||
|
|
||||||
console.log({
|
|
||||||
hasGlassLocationWithMultipleParts: hasGlassLocationWithMultipleParts
|
|
||||||
})
|
|
||||||
if (hasPartQuestions && this.currentPageComesBeforePage(currentPage, fmgPageValues.PART_QUESTIONS)) {
|
if (hasPartQuestions && this.currentPageComesBeforePage(currentPage, fmgPageValues.PART_QUESTIONS)) {
|
||||||
self.$router.navigateWithSaving(self.navigationScenarios.HAS_PART_QUESTIONS, self.$route, {}, {}, { partsOrQuestions: partsOrQuestions });
|
self.$router.navigateWithSaving(self.navigationScenarios.HAS_PART_QUESTIONS, self.$route, {}, {}, { partsOrQuestions: partsOrQuestions });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -233,8 +233,6 @@ function navigateToUrl(url, optionalQuery = {}) {
|
||||||
externalUrl.searchParams.append(queryKey, optionalQuery[queryKey]);
|
externalUrl.searchParams.append(queryKey, optionalQuery[queryKey]);
|
||||||
}
|
}
|
||||||
|
|
||||||
externalUrl.searchParams.append("experiments", "ConceptFunnel=ConceptFunnel_V1=ConceptFunnel_TEST=true");
|
|
||||||
|
|
||||||
window.location.assign(externalUrl);
|
window.location.assign(externalUrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue