From 77c45529bd1e23f29b5450adfd2d3ac9ef2f46e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Sun, 28 Feb 2021 16:48:30 +0100 Subject: [PATCH] Refine small things --- webapp/components/Registration/RegistrationSlider.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/webapp/components/Registration/RegistrationSlider.vue b/webapp/components/Registration/RegistrationSlider.vue index 25af74e05..e69231c78 100644 --- a/webapp/components/Registration/RegistrationSlider.vue +++ b/webapp/components/Registration/RegistrationSlider.vue @@ -180,10 +180,9 @@ export default { }, }, methods: { - setSliderValuesCallback( - isValid, - { collectedInputData, sliderData, sliderSettings }, // sliderCallback = null, - ) { + setSliderValuesCallback(isValid, { collectedInputData, sliderData, sliderSettings }) { + // all changes of 'this.sliders' has to be filled in from the top to be spread to the component slider and all slider components in the slot + this.sliderData.sliders[this.sliderIndex].validated = isValid if (collectedInputData) { @@ -218,11 +217,15 @@ export default { } }, sliderSelectorCallback(selectedIndex) { + // all changes of 'this.sliders' has to be filled in from the top to be spread to the component slider and all slider components in the slot + if (selectedIndex <= this.sliderIndex + 1 && selectedIndex < this.sliderData.sliders.length) { this.sliderData.sliderIndex = selectedIndex } }, buttonCallback(success) { + // all changes of 'this.sliders' has to be filled in from the top to be spread to the component slider and all slider components in the slot + return success }, },