2018-08-11 07:47:10 +02:00
|
|
|
<template>
|
2022-02-19 06:39:14 +01:00
|
|
|
<a :disabled="disabled" @click="play_next">
|
2023-06-30 21:41:40 +02:00
|
|
|
<mdicon
|
2025-02-04 22:00:48 +01:00
|
|
|
class="icon"
|
2023-06-30 21:41:40 +02:00
|
|
|
name="skip-forward"
|
|
|
|
:title="$t('player.button.skip-forward')"
|
|
|
|
/>
|
2018-08-11 07:47:10 +02:00
|
|
|
</a>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2024-08-22 21:31:59 +02:00
|
|
|
import { useQueueStore } from '@/stores/queue'
|
2018-08-11 07:47:10 +02:00
|
|
|
import webapi from '@/webapi'
|
|
|
|
|
|
|
|
export default {
|
2025-02-04 22:00:48 +01:00
|
|
|
name: 'ControlPlayerNext',
|
2020-04-18 06:57:55 +02:00
|
|
|
|
2019-10-26 09:58:35 +02:00
|
|
|
computed: {
|
2022-02-19 06:39:14 +01:00
|
|
|
disabled() {
|
2024-08-22 21:31:59 +02:00
|
|
|
return useQueueStore()?.count <= 0
|
2019-10-26 09:58:35 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-08-11 07:47:10 +02:00
|
|
|
methods: {
|
2023-06-07 21:25:54 +02:00
|
|
|
play_next() {
|
2019-10-26 09:58:35 +02:00
|
|
|
if (this.disabled) {
|
|
|
|
return
|
|
|
|
}
|
2018-08-11 07:47:10 +02:00
|
|
|
webapi.player_next()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|