diff --git a/src/components/Player.vue b/src/components/Player.vue index 222c765b4a3f5726523cafb873f00e31f9dfb146..c73e542b505f78b3e683771f656cdee575f11e6b 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -25,7 +25,6 @@ <div class="playerControls"> <button class="primary icon-play-previous-white" - style="background-position: 45% 50%;" @click="seekEpisode(currentSeek - 10)" /> <div class="wrap" @@ -37,7 +36,6 @@ </div> <button class="primary icon-play-next-white" - style="background-position: 55% 50%;" @click="seekEpisode(currentSeek + 10)" /> </div> <div class="metaControls"> @@ -202,6 +200,14 @@ export default { &.big.icon-pause-white { background-position: 50% 50%; } + + &.icon-play-previous-white { + background-position: 45% 50%; + } + + &.icon-play-next-white { + background-position: 55% 50%; + } } } diff --git a/src/store/episode.js b/src/store/episode.js index 51b77f773b69b49ad361d26efe840777b6af2cc3..67f9cbea2882006b684055d805cb444792555bc2 100644 --- a/src/store/episode.js +++ b/src/store/episode.js @@ -62,7 +62,7 @@ export default { actions: { async loadEpisodes(context) { const episodes = await episodeApiClient.queryEpisodes(null, 0) - if (episodes) { + if (episodes.data.episodes.length) { context.dispatch('loadEpisode', episodes.data.episodes[0]) } },