From 1944aadb363b168d13c54019fa86a2c394a2d61d Mon Sep 17 00:00:00 2001 From: Katie Date: Wed, 9 Nov 2022 11:52:22 -0500 Subject: [PATCH] CSR-748 Fix vehicle-parts defect --- .../base-input-button/base-input-button.vue | 8 ++++++++ src/layouts/vehicle-parts/vehicle-parts.vue | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/common-components/base-input-button/base-input-button.vue b/src/common-components/base-input-button/base-input-button.vue index 572be9ef5..a5ddad07a 100644 --- a/src/common-components/base-input-button/base-input-button.vue +++ b/src/common-components/base-input-button/base-input-button.vue @@ -45,6 +45,7 @@ export default { }; }, mounted() { + // Need this here and in the watch for vehicle-parts, unless there'a better way if (this.isChecked) { this.handleChange(this.modelValue); } @@ -188,6 +189,13 @@ export default { fieldOptions, // only need to expose this for unit test purposes }; }, + watch: { + isChecked(isChecked) { + if (isChecked) { + this.handleChange(this.modelValue) + } + } + } }; diff --git a/src/layouts/vehicle-parts/vehicle-parts.vue b/src/layouts/vehicle-parts/vehicle-parts.vue index 09536fb82..18a076b70 100644 --- a/src/layouts/vehicle-parts/vehicle-parts.vue +++ b/src/layouts/vehicle-parts/vehicle-parts.vue @@ -188,7 +188,7 @@ export default { ); // TODO KO delete after quote MVP - // this.navigateForward(matchedParts, null, this.shouldGoToHeritageQuote); + this.navigateForward(matchedParts, null, this.shouldGoToHeritageQuote); // Navigate to the next page // this.navigateForward(matchedParts); },