reset/stop to bottom

This commit is contained in:
Gator
2022-12-04 17:24:45 +01:00
parent 1204ac01c3
commit 2c69840d6f
4 changed files with 46 additions and 32 deletions

View File

@ -1,30 +1,17 @@
<template>
<MenuRow row-title="2D Cellular Automata">
<div class="form-field">
<label>Start from last result</label>
<input type="button" value="start" @click="toggleDraw2dLast()" />
</div>
<div class="form-field">
<label>Start from empty board</label>
<input
type="button"
name="start2d"
value="start"
@click="toggleDraw2d()"
/>
<input
type="button"
name="stop"
class="stop"
value="stop"
@click="toggleStop()"
/>
<input
type="button"
name="reset"
class="reset"
value="reset"
@click="toggleReset()"
/>
</div>
<div class="form-field">
<label>Start from last result</label>
<input type="button" value="start" @click="toggleDraw2dLast()" />
</div>
</MenuRow>
</template>
@ -40,12 +27,7 @@
MenuRow,
},
methods: {
...mapActions(globalStore, [
"toggleDraw2d",
"toggleDraw2dLast",
"toggleReset",
"toggleStop",
]),
...mapActions(globalStore, ["toggleDraw2dLast", "toggleDraw2d"]),
},
};
</script>