diff --git a/webapp/src/components/modalComponents/calibrationModal.vue b/webapp/src/components/modalComponents/calibrationModal.vue index fd02562f..9d24d533 100644 --- a/webapp/src/components/modalComponents/calibrationModal.vue +++ b/webapp/src/components/modalComponents/calibrationModal.vue @@ -121,7 +121,7 @@ v-show="stepValue == 3" class="uk-button uk-button-default" type="button" - @click="stepValue = 0" + @click="restart()" > Restart @@ -226,12 +226,21 @@ export default { // Forces modal to show on button press force_show: function() { this.ready = true; - this.stepValue = 0; + this.stepValue = 1; + this.force = true // Show the modal var el = this.$refs["calibrationModalEl"]; this.showModalElement(el); // Calls the mixin }, + restart: function() { + if (this.force == true){ + this.stepValue = 1 + } else { + this.stepValue = 0 + } + }, + hide: function() { // Show the modal var el = this.$refs["calibrationModalEl"];