2018-08-11 01:47:10 -04:00
|
|
|
<template>
|
2022-02-19 00:39:14 -05:00
|
|
|
<a :disabled="disabled" @click="play_next">
|
2023-06-30 15:41:40 -04:00
|
|
|
<mdicon
|
|
|
|
name="skip-forward"
|
|
|
|
:size="icon_size"
|
|
|
|
:title="$t('player.button.skip-forward')"
|
|
|
|
/>
|
2018-08-11 01:47:10 -04:00
|
|
|
</a>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import webapi from '@/webapi'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'PlayerButtonNext',
|
|
|
|
|
2020-04-18 00:57:55 -04:00
|
|
|
props: {
|
2022-04-16 04:14:03 -04:00
|
|
|
icon_size: {
|
|
|
|
type: Number,
|
|
|
|
default: 16
|
|
|
|
}
|
2020-04-18 00:57:55 -04:00
|
|
|
},
|
|
|
|
|
2019-10-26 03:58:35 -04:00
|
|
|
computed: {
|
2022-02-19 00:39:14 -05:00
|
|
|
disabled() {
|
2019-10-26 03:58:35 -04:00
|
|
|
return !this.$store.state.queue || this.$store.state.queue.count <= 0
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-08-11 01:47:10 -04:00
|
|
|
methods: {
|
2023-06-07 15:25:54 -04:00
|
|
|
play_next() {
|
2019-10-26 03:58:35 -04:00
|
|
|
if (this.disabled) {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2018-08-11 01:47:10 -04:00
|
|
|
webapi.player_next()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2022-02-19 00:39:14 -05:00
|
|
|
<style></style>
|