CSR-254: refactoring, restored commented out test code
This commit is contained in:
parent
18a3641a54
commit
3838316699
4 changed files with 6 additions and 10 deletions
|
|
@ -68,15 +68,13 @@ export default ({
|
|||
}
|
||||
},
|
||||
answersToDisplay(){
|
||||
const data = Array.isArray(this.answersFromCms)
|
||||
return Array.isArray(this.answersFromCms)
|
||||
? this.answersFromCms.filter(ans =>
|
||||
{
|
||||
const name = ans.Name.split('-');
|
||||
return name[0].toUpperCase() === store.getters.vehicle.category && this.damageOptionsMap[name[1]];
|
||||
})
|
||||
: [];
|
||||
console.log('data: ', data);
|
||||
return data;
|
||||
},
|
||||
},
|
||||
components: {
|
||||
|
|
|
|||
|
|
@ -74,9 +74,9 @@ const routes = [
|
|||
.filter((x) => x.name === routeData[0].name)[0]
|
||||
.components.default();
|
||||
|
||||
// if (!arePagePrerequisitesValid(nextComponent)) {
|
||||
// await GoToFunnelStartOn404(next);
|
||||
// }
|
||||
if (!arePagePrerequisitesValid(nextComponent)) {
|
||||
await GoToFunnelStartOn404(next);
|
||||
}
|
||||
|
||||
// Assign current query string parameters, as well as our fmgPage one.
|
||||
next({
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { toRefs } from "vue";
|
||||
import { useField } from "vee-validate";
|
||||
|
||||
export default {
|
||||
|
|
@ -107,17 +106,16 @@ export default {
|
|||
}
|
||||
},
|
||||
setup(props) {
|
||||
const { groupName, value } = toRefs(props);
|
||||
const inputType = props.isMultiSelect ? "checkbox" : "radio";
|
||||
|
||||
const {
|
||||
value: inputValue,
|
||||
handleChange,
|
||||
errors,
|
||||
} = useField(groupName, props.validationRules,
|
||||
} = useField(props.groupName, props.validationRules,
|
||||
{
|
||||
type: inputType,
|
||||
checkedValue: value,
|
||||
checkedValue: props.value,
|
||||
});
|
||||
return {
|
||||
handleChange,
|
||||
|
|
|
|||
Loading…
Reference in a new issue