Remove unused button-question code

Also remove console log, now ready for styling
This commit is contained in:
scottkiener-at-safelite 2026-01-14 10:17:37 -05:00
parent 1c6105af53
commit 508aa58c42

View file

@ -120,36 +120,6 @@ export default {
}; };
}, },
computed: { computed: {
prefAnswers() {
const cmsAnswersContent = [
{
cmsWidgetName: options.SAFELITE
},
{
cmsWidgetName: options.TPA
}
];
// if cms content has not yet loaded, skip
if (
!this.getCmsContent(
cmsAnswersContent[0].cmsWidgetName,
'HeaderText'
)
|| this.getCmsContent(
cmsAnswersContent[0].cmsWidgetName,
'HeaderText'
) === ''
) {
return {};
}
const modifiedAnswers = cmsAnswersContent.map((answer) => ({
value: answer.cmsWidgetName,
buttonLabel: this.getHeaderTextFromCms(answer.cmsWidgetName),
buttonLabelSubCopy: this.getSubheaderTextFromCms(answer.cmsWidgetName),
buttonBodyCopy: this.getBodyTextFromCms(answer.cmsWidgetName)
}));
return modifiedAnswers;
},
ackError() { ackError() {
return errorMessages.ACKNOWLEDGEMENT_REQUIRED; return errorMessages.ACKNOWLEDGEMENT_REQUIRED;
}, },
@ -159,6 +129,7 @@ export default {
scheduleWithOtherText() { scheduleWithOtherText() {
return this.getCmsContent('ScheduleWithOtherText', 'BodyText'); return this.getCmsContent('ScheduleWithOtherText', 'BodyText');
}, },
// Expose options for use in the template
options() { options() {
return options; return options;
} }
@ -191,7 +162,6 @@ export default {
this.navigateForward(this.navigationScenarios.CLICKED_FORWARD_WITH_TPA_ENABLED); this.navigateForward(this.navigationScenarios.CLICKED_FORWARD_WITH_TPA_ENABLED);
}, },
forwardButtonAction(selectedProvider) { forwardButtonAction(selectedProvider) {
console.log('forwardButtonAction', selectedProvider);
let scenario = null; let scenario = null;
switch (selectedProvider) { switch (selectedProvider) {
case options.SAFELITE: case options.SAFELITE:
@ -202,9 +172,7 @@ export default {
break; break;
case options.TPA: case options.TPA:
this.mainStore.updateIsSafeliteProvider(false); this.mainStore.updateIsSafeliteProvider(false);
console.log('enableTPAFlow', this.mainStore.issConfig.enableTPAFlow);
if (this.mainStore.issConfig.enableTPAFlow) { if (this.mainStore.issConfig.enableTPAFlow) {
console.log('hasRecalibrationPart', this.mainStore.hasRecalibrationPart);
if (this.mainStore.hasRecalibrationPart) { if (this.mainStore.hasRecalibrationPart) {
this.$refs[TPA_RECAL_MODAL_REF_NAME].openModal(); this.$refs[TPA_RECAL_MODAL_REF_NAME].openModal();
return; return;