Removed first menu from force show and created restart method

This commit is contained in:
Chish36 2025-08-12 19:08:30 +01:00
parent e1aca0bef7
commit eb496e4cee

View file

@ -121,7 +121,7 @@
v-show="stepValue == 3" v-show="stepValue == 3"
class="uk-button uk-button-default" class="uk-button uk-button-default"
type="button" type="button"
@click="stepValue = 0" @click="restart()"
> >
Restart Restart
</button> </button>
@ -226,12 +226,21 @@ export default {
// Forces modal to show on button press // Forces modal to show on button press
force_show: function() { force_show: function() {
this.ready = true; this.ready = true;
this.stepValue = 0; this.stepValue = 1;
this.force = true
// Show the modal // Show the modal
var el = this.$refs["calibrationModalEl"]; var el = this.$refs["calibrationModalEl"];
this.showModalElement(el); // Calls the mixin this.showModalElement(el); // Calls the mixin
}, },
restart: function() {
if (this.force == true){
this.stepValue = 1
} else {
this.stepValue = 0
}
},
hide: function() { hide: function() {
// Show the modal // Show the modal
var el = this.$refs["calibrationModalEl"]; var el = this.$refs["calibrationModalEl"];