Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (29 sloc) 561 Bytes
<template>
<div class="about">
<h1 ref="componentFocusTarget">My settings</h1>
<label
><input
type="checkbox"
v-model="reducedMotion"
@change="toggleReducedMotion"
/>
Disable animations</label
>
</div>
</template>
<script>
import store from "../store";
export default {
computed: {
reducedMotion: function () {
return store.getters.getReducedMotion;
}
},
name: "settings",
methods: {
toggleReducedMotion() {
store.commit("toggleReducedMotion");
}
}
};
</script>
You can’t perform that action at this time.