mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-09 21:38:36 +02:00
fix: use native haptic plugin and remove semicolons
This commit is contained in:
@@ -25,8 +25,6 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Haptics, ImpactStyle } from '@capacitor/haptics';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -51,7 +49,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async clickedOption(lib) {
|
||||
await Haptics.impact({ style: ImpactStyle.Medium });
|
||||
await this.$hapticsImpactMedium()
|
||||
this.show = false
|
||||
if (lib.id === this.currentLibraryId) return
|
||||
await this.$store.dispatch('libraries/fetch', lib.id)
|
||||
|
||||
Reference in New Issue
Block a user