loop and next button for manual control

This commit is contained in:
2022-12-19 21:49:57 +01:00
parent 2a42746e1c
commit f08dedba50
2 changed files with 47 additions and 3 deletions

View File

@ -1,5 +1,23 @@
<template>
<div class="form-field">
<div class="form-field">
<label>
Loop
<input
:value="loop"
type="checkbox"
:checked="loop"
@input="toggleLoop()"
/>
</label>
</div>
<input
type="button"
name="next"
class="next"
value="Next"
@click="toggleNext()"
/>
<input
type="button"
name="stop"
@ -17,13 +35,21 @@
</div>
</template>
<script>
import { mapActions } from "pinia";
import { mapState, mapActions } from "pinia";
import { globalStore } from "../stores/index.js";
export default {
name: "MenuReset",
computed: {
...mapState(globalStore, ["loop"]),
},
methods: {
...mapActions(globalStore, ["toggleReset", "toggleStop"]),
...mapActions(globalStore, [
"toggleReset",
"toggleStop",
"toggleLoop",
"toggleNext",
]),
},
};
</script>