CSR-762 Cleanup

This commit is contained in:
Katie 2022-09-22 14:23:26 -04:00
parent 25a27563ab
commit dce7a575b6
7 changed files with 5 additions and 33 deletions

View file

@ -3,7 +3,6 @@
:class="[buttonWrapperClasses, { 'has-error': errors.length > 0 }]" :class="[buttonWrapperClasses, { 'has-error': errors.length > 0 }]"
:for="buttonId" :for="buttonId"
@mousedown.left="handleEventAction('click', $event)"> @mousedown.left="handleEventAction('click', $event)">
<!-- BIB props: {{$props}} -->
<input <input
:type="inputType" :type="inputType"
:id="buttonId" :id="buttonId"
@ -42,17 +41,6 @@ export default {
required: true, required: true,
}, },
isMultiSelect: Boolean, isMultiSelect: Boolean,
// isWide: Boolean,
// buttonImage: String,
// buttonImageId: String,
// buttonLabel: {
// type: String,
// required: true,
// },
// buttonLabelSubCopy: {
// type: String,
// required: true,
// },
groupName: { groupName: {
type: String, type: String,
required: true, required: true,

View file

@ -1,7 +1,6 @@
<template> <template>
<transition name="fade" mode="out-in"> <transition name="fade" mode="out-in">
<div v-if="shouldDisplayReplaceOptionsQuestion" class="replace-options-question" :class="this.answersToDisplay.length < 2 ? 'd-none' : ''" aria-live="polite"> <div v-if="shouldDisplayReplaceOptionsQuestion" class="replace-options-question" :class="this.answersToDisplay.length < 2 ? 'd-none' : ''" aria-live="polite">
ROQ selectedValue: {{selectedValue}}
<buttonQuestion <buttonQuestion
isWide isWide
:questionText="questionText" :questionText="questionText"

View file

@ -1,7 +1,6 @@
<template> <template>
<transition name="fade" mode="out-in"> <transition name="fade" mode="out-in">
<div class="windshield-chip-count-question" v-if="isAvailable" aria-live="polite"> <div class="windshield-chip-count-question" v-if="isAvailable" aria-live="polite">
WCCQ selectedValue: {{selectedValue}}
<buttonQuestion <buttonQuestion
:questionText="questionText" :questionText="questionText"
:answers="answersFromCms" :answers="answersFromCms"

View file

@ -5,10 +5,6 @@
<div class="nested-radio"> <div class="nested-radio">
<div class="row my-2"> <div class="row my-2">
<div class="col"> <div class="col">
modelValue: {{modelValue}} <br/>
selectedTint: {{selectedTint}} <br/>
selectedPartNumber: {{selectedPartNumber}} <br/>
tintSelectionOptions: {{tintSelectionOptions}}
<buttonQuestion <buttonQuestion
v-model="selectedTint" v-model="selectedTint"
:answers="tintSelectionOptions" :answers="tintSelectionOptions"

View file

@ -25,7 +25,6 @@
</div> </div>
</div> </div>
</div> </div>
glassParts: {{glassParts}}
<div v-for="(item, i) in PartsOrQuestions" :key="i"> <div v-for="(item, i) in PartsOrQuestions" :key="i">
<!-- Render horizontal lines if there is multi-glass (aka if i > 0) --> <!-- Render horizontal lines if there is multi-glass (aka if i > 0) -->
<hr v-if="i > 0" /> <hr v-if="i > 0" />

View file

@ -24,6 +24,10 @@ export default {
}, },
methods: { methods: {
handleAnswerChange(e) { handleAnswerChange(e) {
if (this.preHandleAnswerChange) {
this.preHandleAnswerChange(e)
}
this.$emit("change", e); this.$emit("change", e);
}, },
}, },

View file

@ -1,19 +1,8 @@
<template> <template>
<!-- <baseInputButton
:isMultiSelect="isMultiSelect"
:value="value"
:modelValue="modelValue"
:groupName="groupName"
:validationRules="validationRules"
buttonWrapperClasses="list-group list-button rounded-3 d-flex flex-column w-100 mb-2"
@change="handleAnswerChange"> -->
<baseInputButton <baseInputButton
v-bind="$props" v-bind="$props"
buttonWrapperClasses="list-group list-button rounded-3 d-flex flex-column w-100 mb-2" buttonWrapperClasses="list-group list-button rounded-3 d-flex flex-column w-100 mb-2"
@change="handleAnswerChange"> @change="handleAnswerChange">
<!-- modelValue: {{modelValue}}<br/>
value: {{value}} <br/>
buttonLabel: {{buttonLabel}} -->
<div <div
tabindex="-1" tabindex="-1"
:aria-label="buttonLabel" :aria-label="buttonLabel"
@ -62,12 +51,10 @@ export default {
displayLoader() { displayLoader() {
this.isLoaderDisplayed = true; this.isLoaderDisplayed = true;
}, },
handleAnswerChange(e) { preHandleAnswerChange() {
if (this.selectingInitiatesLoad) { if (this.selectingInitiatesLoad) {
this.displayLoader(); this.displayLoader();
} }
this.$emit("change", e);
}, },
}, },
components: { components: {