feat: add haptic feedback to all action buttons

This commit is contained in:
benonymity 2022-12-08 00:28:28 -05:00
parent 96dde8cf31
commit 1aa6a441f3
16 changed files with 113 additions and 42 deletions

View file

@ -36,6 +36,7 @@
<script>
import TouchEvent from '@/objects/TouchEvent'
import { Haptics, ImpactStyle } from '@capacitor/haptics';
export default {
data() {
@ -137,6 +138,7 @@ export default {
this.show = false
},
async logout() {
await Haptics.impact({ style: ImpactStyle.Medium });
if (this.user) {
await this.$axios.$post('/logout').catch((error) => {
console.error(error)