mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-27 22:04:08 +02:00
Remove icons from jump options, remove unused computed properties
This commit is contained in:
+10
-32
@@ -354,11 +354,11 @@ export default {
|
||||
isiOS() {
|
||||
return this.$platform === 'ios'
|
||||
},
|
||||
jumpForwardItems() {
|
||||
return this.$store.state.globals.jumpForwardItems || []
|
||||
jumpForwardSecondsOptions() {
|
||||
return this.$store.state.globals.jumpForwardSecondsOptions || []
|
||||
},
|
||||
jumpBackwardsItems() {
|
||||
return this.$store.state.globals.jumpBackwardsItems || []
|
||||
jumpBackwardsSecondsOptions() {
|
||||
return this.$store.state.globals.jumpBackwardsSecondsOptions || []
|
||||
},
|
||||
languageOptionItems() {
|
||||
return this.$languageCodeOptions || []
|
||||
@@ -385,26 +385,6 @@ export default {
|
||||
}
|
||||
]
|
||||
},
|
||||
currentJumpForwardTimeIcon() {
|
||||
return this.currentJumpForwardItem.icon
|
||||
},
|
||||
currentJumpForwardTimeIndex() {
|
||||
var index = this.jumpForwardItems.findIndex((jfi) => jfi.value === this.settings.jumpForwardTime)
|
||||
return index >= 0 ? index : 1
|
||||
},
|
||||
currentJumpForwardItem() {
|
||||
return this.jumpForwardItems[this.currentJumpForwardTimeIndex] || this.jumpForwardItems[0] || {}
|
||||
},
|
||||
currentJumpBackwardsTimeIcon() {
|
||||
return this.currentJumpBackwardsItem.icon
|
||||
},
|
||||
currentJumpBackwardsTimeIndex() {
|
||||
var index = this.jumpBackwardsItems.findIndex((jfi) => jfi.value === this.settings.jumpBackwardsTime)
|
||||
return index >= 0 ? index : 1
|
||||
},
|
||||
currentJumpBackwardsItem() {
|
||||
return this.jumpBackwardsItems[this.currentJumpBackwardsTimeIndex] || this.jumpBackwardsItems[0] || {}
|
||||
},
|
||||
shakeSensitivityOption() {
|
||||
const item = this.shakeSensitivityItems.find((i) => i.value === this.settings.shakeSensitivity)
|
||||
return item?.text || 'Error'
|
||||
@@ -449,16 +429,14 @@ export default {
|
||||
else if (this.moreMenuSetting === 'streamingUsingCellular') return this.streamingUsingCellularItems
|
||||
else if (this.moreMenuSetting === 'androidAutoBrowseSeriesSequenceOrder') return this.androidAutoBrowseSeriesSequenceOrderItems
|
||||
else if (this.moreMenuSetting === 'jumpForward')
|
||||
return this.jumpForwardItems.map((i) => ({
|
||||
text: this.getJumpLabel(i.value),
|
||||
value: i.value,
|
||||
icon: i.icon
|
||||
return this.jumpForwardSecondsOptions.map((value) => ({
|
||||
text: this.getJumpLabel(value),
|
||||
value: value
|
||||
}))
|
||||
else if (this.moreMenuSetting === 'jumpBackwards')
|
||||
return this.jumpBackwardsItems.map((i) => ({
|
||||
text: this.getJumpLabel(i.value),
|
||||
value: i.value,
|
||||
icon: i.icon
|
||||
return this.jumpBackwardsSecondsOptions.map((value) => ({
|
||||
text: this.getJumpLabel(value),
|
||||
value: value
|
||||
}))
|
||||
return []
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user