Removed first menu from force show and created restart method
This commit is contained in:
parent
e1aca0bef7
commit
eb496e4cee
1 changed files with 11 additions and 2 deletions
|
|
@ -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"];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue