Add:Haptic feedback device setting off/light/medium/heavy #472

This commit is contained in:
advplyr
2023-01-08 15:32:15 -06:00
parent 89041c4141
commit d59f3ae0b6
25 changed files with 133 additions and 73 deletions
+3 -3
View File
@@ -95,7 +95,7 @@ export default {
this.showBookmarkTitleInput = true
},
async deleteBookmark(bm) {
await this.$hapticsImpactMedium()
await this.$hapticsImpact()
const { value } = await Dialog.confirm({
title: 'Remove Bookmark',
message: `Are you sure you want to remove bookmark?`
@@ -114,7 +114,7 @@ export default {
this.show = false
},
async clickBookmark(bm) {
await this.$hapticsImpactMedium()
await this.$hapticsImpact()
this.$emit('select', bm)
},
submitUpdateBookmark(updatedBookmark) {
@@ -159,7 +159,7 @@ export default {
this.showBookmarkTitleInput = true
},
async submitBookmark() {
await this.$hapticsImpactMedium()
await this.$hapticsImpact()
if (this.selectedBookmark) {
var updatePayload = {
...this.selectedBookmark,
+2 -2
View File
@@ -213,7 +213,7 @@ export default {
},
methods: {
async clearSelected() {
await this.$hapticsImpactMedium()
await this.$hapticsImpact()
this.selected = 'all'
this.show = false
this.$nextTick(() => this.$emit('change', 'all'))
@@ -232,7 +232,7 @@ export default {
this.show = false
return
}
await this.$hapticsImpactMedium()
await this.$hapticsImpact()
this.selected = val
this.show = false
this.$nextTick(() => this.$emit('change', val))
+1 -1
View File
@@ -49,7 +49,7 @@ export default {
},
methods: {
async clickedOption(lib) {
await this.$hapticsImpactMedium()
await this.$hapticsImpact()
this.show = false
if (lib.id === this.currentLibraryId) return
await this.$store.dispatch('libraries/fetch', lib.id)
+1 -1
View File
@@ -127,7 +127,7 @@ export default {
},
methods: {
async clickedOption(val) {
await this.$hapticsImpactMedium()
await this.$hapticsImpact()
if (this.selected === val) {
this.selectedDesc = !this.selectedDesc
} else {
+7 -7
View File
@@ -90,36 +90,36 @@ export default {
},
methods: {
async clickedChapterOption() {
await this.$hapticsImpactMedium()
await this.$hapticsImpact()
this.show = false
this.$nextTick(() => this.$emit('change', { time: this.currentEndOfChapterTime * 1000, isChapterTime: true }))
},
async clickedOption(timeoutMin) {
await this.$hapticsImpactMedium()
await this.$hapticsImpact()
var timeout = timeoutMin * 1000 * 60
this.show = false
this.manualTimerModal = false
this.$nextTick(() => this.$emit('change', { time: timeout, isChapterTime: false }))
},
async cancelSleepTimer() {
await this.$hapticsImpactMedium()
await this.$hapticsImpact()
this.$emit('cancel')
this.show = false
},
async increaseSleepTime() {
await this.$hapticsImpactMedium()
await this.$hapticsImpact()
this.$emit('increase')
},
async decreaseSleepTime() {
await this.$hapticsImpactMedium()
await this.$hapticsImpact()
this.$emit('decrease')
},
async increaseManualTimeout() {
await this.$hapticsImpactMedium()
await this.$hapticsImpact()
this.manualTimeoutMin++
},
async decreaseManualTimeout() {
await this.$hapticsImpactMedium()
await this.$hapticsImpact()
if (this.manualTimeoutMin > 1) this.manualTimeoutMin--
}
},
@@ -115,7 +115,7 @@ export default {
})
},
async clickPlaylist(playlist) {
await this.$hapticsImpactMedium()
await this.$hapticsImpact()
if (playlist.isItemIncluded) {
this.removeFromPlaylist(playlist)
} else {
@@ -165,7 +165,7 @@ export default {
this.showPlaylistNameInput = true
},
async submitCreatePlaylist() {
await this.$hapticsImpactMedium()
await this.$hapticsImpact()
if (!this.newPlaylistName || !this.selectedPlaylistItems.length) {
return
}