mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-04 07:40:12 -05:00
34 lines
537 B
Vue
34 lines
537 B
Vue
<template>
|
|
<a :disabled="disabled" @click="play_next">
|
|
<mdicon
|
|
class="icon"
|
|
name="skip-forward"
|
|
:title="$t('player.button.skip-forward')"
|
|
/>
|
|
</a>
|
|
</template>
|
|
|
|
<script>
|
|
import { useQueueStore } from '@/stores/queue'
|
|
import webapi from '@/webapi'
|
|
|
|
export default {
|
|
name: 'ControlPlayerNext',
|
|
|
|
computed: {
|
|
disabled() {
|
|
return useQueueStore()?.count <= 0
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
play_next() {
|
|
if (this.disabled) {
|
|
return
|
|
}
|
|
webapi.player_next()
|
|
}
|
|
}
|
|
}
|
|
</script>
|