diff --git a/webapp/src/components/modalComponents/calibrationModal.vue b/webapp/src/components/modalComponents/calibrationModal.vue index 201e6c67..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 @@ -223,6 +223,23 @@ export default { this.onHide(); } }, + // Forces modal to show on button press + force_show: function() { + this.ready = true; + 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 diff --git a/webapp/src/components/tabContentComponents/settingsContent.vue b/webapp/src/components/tabContentComponents/settingsContent.vue index b2ba0341..bbe5c0a2 100644 --- a/webapp/src/components/tabContentComponents/settingsContent.vue +++ b/webapp/src/components/tabContentComponents/settingsContent.vue @@ -1,6 +1,10 @@