diff --git a/components/app/AudioPlayer.vue b/components/app/AudioPlayer.vue index 7a4e33ea..856c33a4 100644 --- a/components/app/AudioPlayer.vue +++ b/components/app/AudioPlayer.vue @@ -70,14 +70,9 @@
first_page -
- {{ jumpBackwardsItem.icon }} - {{ jumpBackwardsLabel }} +
+ replay + {{ jumpBackwardsLabel }}
@@ -85,14 +80,9 @@ {{ seekLoading ? 'autorenew' : !isPlaying ? 'play_arrow' : 'pause' }}
-
- {{ jumpForwardItem.icon }} - {{ jumpForwardLabel }} +
+ forward_media + {{ jumpForwardLabel }}
last_page
@@ -239,12 +229,6 @@ export default { return items }, - jumpForwardItem() { - return this.$store.getters['globals/getJumpForwardItem'](this.jumpForwardTime) - }, - jumpBackwardsItem() { - return this.$store.getters['globals/getJumpBackwardsItem'](this.jumpBackwardsTime) - }, jumpForwardLabel() { return this.getJumpLabel(this.jumpForwardTime) }, @@ -967,7 +951,7 @@ export default { }, showProgressSyncSuccess() { this.syncStatus = this.$constants.SyncStatus.SUCCESS - }, + } }, mounted() { this.updateScreenSize() diff --git a/store/globals.js b/store/globals.js index bb09066c..c4db7705 100644 --- a/store/globals.js +++ b/store/globals.js @@ -143,21 +143,7 @@ export const getters = { if (episodeId != null && lmp.episodeId != episodeId) return false return lmp.libraryItemId == libraryItemId }) - }, - getJumpForwardIcon: (state) => (jumpForwardTime) => { - const item = state.jumpForwardItems.find((i) => i.value == jumpForwardTime) - return item ? item.icon : 'forward_10' - }, - getJumpBackwardsIcon: (state) => (jumpBackwardsTime) => { - const item = state.jumpBackwardsItems.find((i) => i.value == jumpBackwardsTime) - return item ? item.icon : 'replay_10' - }, - getJumpForwardItem: (state) => (jumpForwardTime) => { - return state.jumpForwardItems.find((i) => i.value == jumpForwardTime) || state.jumpForwardItems[1] - }, - getJumpBackwardsItem: (state) => (jumpBackwardsTime) => { - return state.jumpBackwardsItems.find((i) => i.value == jumpBackwardsTime) || state.jumpBackwardsItems[1] - } + } } export const actions = {