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 {
|
export default {
|
||||||
name: "glass-part-question",
|
name: "glass-part-question",
|
||||||
|
emits: ["update:modelValue"],
|
||||||
inheritAttrs: false,
|
inheritAttrs: false,
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -117,10 +118,8 @@ export default {
|
||||||
return this.modelValue?.partNumber;
|
return this.modelValue?.partNumber;
|
||||||
},
|
},
|
||||||
set(newValue) {
|
set(newValue) {
|
||||||
this.$emit(
|
const part = !newValue ? null : this.partsForSelectedTint.filter((part) => part.partNumber == newValue.value)[0]
|
||||||
"update:modelValue",
|
this.$emit("update:modelValue", part);
|
||||||
this.partsForSelectedTint.filter((part) => part.partNumber == newValue.value)[0]
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -218,7 +217,7 @@ export default {
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
selectedTint() {
|
selectedTint() {
|
||||||
this.AutoSelectIfSinglePart();
|
this.ResetTintAndPartSelections();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -108,9 +108,7 @@ data() {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isForwardActionDisabled() {
|
isForwardActionDisabled() {
|
||||||
return (
|
return this.selectedGlassPartNumbers.length !== this.PartsFromApi.partsOrQuestions.length
|
||||||
this.selectedGlassPartNumbers.length !== this.PartsFromApi.partsOrQuestions.length
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
selectedGlassPartNumbers() {
|
selectedGlassPartNumbers() {
|
||||||
// Compile all selected parts from the page.
|
// Compile all selected parts from the page.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue