Fix #150: Player is back in Queue tab

merge-requests/165/head
Eliot Berriot 2018-04-23 19:05:48 +02:00
rodzic 0e153c0f4d
commit 1a34f44898
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DD6965E2476E5C27
3 zmienionych plików z 14 dodań i 5 usunięć

Wyświetl plik

@ -0,0 +1 @@
Player is back in Queue tab (#150)

Wyświetl plik

@ -49,8 +49,6 @@
class="item" v-if="$store.state.auth.availablePermissions['federation.manage']"
:to="{path: '/manage/federation/libraries'}"><i class="sitemap icon"></i> {{ $t('Federation') }}</router-link>
</div>
<player></player>
</div>
<div v-if="queue.previousQueue " class="ui black icon message">
<i class="history icon"></i>
@ -90,7 +88,6 @@
</draggable>
</table>
<div v-if="$store.state.radios.running" class="ui black message">
<div class="content">
<div class="header">
<i class="feed icon"></i> {{ $t('You have a radio playing') }}
@ -101,6 +98,7 @@
</div>
</div>
</div>
<player @next="scrollToCurrent" @previous="scrollToCurrent"></player>
</div>
</template>

Wyświetl plik

@ -173,11 +173,21 @@ export default {
...mapActions({
togglePlay: 'player/togglePlay',
clean: 'queue/clean',
next: 'queue/next',
previous: 'queue/previous',
shuffle: 'queue/shuffle',
updateProgress: 'player/updateProgress'
}),
next () {
let self = this
this.$store.dispatch('queue/next').then(() => {
self.$emit('next')
})
},
previous () {
let self = this
this.$store.dispatch('queue/previous').then(() => {
self.$emit('previous')
})
},
touchProgress (e) {
let time
let target = this.$refs.progress