fixes to disable Continue button if all selections haven't been made
This commit is contained in:
parent
bbc455e751
commit
2e5c2fd129
2 changed files with 5 additions and 8 deletions
|
|
@ -50,6 +50,7 @@ import { errorMessages } from "@/constants/error-messages";
|
|||
|
||||
export default {
|
||||
name: "glass-part-question",
|
||||
emits: ["update:modelValue"],
|
||||
inheritAttrs: false,
|
||||
data() {
|
||||
return {
|
||||
|
|
@ -117,10 +118,8 @@ export default {
|
|||
return this.modelValue?.partNumber;
|
||||
},
|
||||
set(newValue) {
|
||||
this.$emit(
|
||||
"update:modelValue",
|
||||
this.partsForSelectedTint.filter((part) => part.partNumber == newValue.value)[0]
|
||||
);
|
||||
const part = !newValue ? null : this.partsForSelectedTint.filter((part) => part.partNumber == newValue.value)[0]
|
||||
this.$emit("update:modelValue", part);
|
||||
},
|
||||
},
|
||||
|
||||
|
|
@ -218,7 +217,7 @@ export default {
|
|||
},
|
||||
watch: {
|
||||
selectedTint() {
|
||||
this.AutoSelectIfSinglePart();
|
||||
this.ResetTintAndPartSelections();
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -108,9 +108,7 @@ data() {
|
|||
},
|
||||
computed: {
|
||||
isForwardActionDisabled() {
|
||||
return (
|
||||
this.selectedGlassPartNumbers.length !== this.PartsFromApi.partsOrQuestions.length
|
||||
);
|
||||
return this.selectedGlassPartNumbers.length !== this.PartsFromApi.partsOrQuestions.length
|
||||
},
|
||||
selectedGlassPartNumbers() {
|
||||
// Compile all selected parts from the page.
|
||||
|
|
|
|||
Loading…
Reference in a new issue