mirror of
https://github.com/owntone/owntone-server.git
synced 2025-07-17 20:52:46 -04:00
32 lines
538 B
Vue
32 lines
538 B
Vue
<template>
|
|
<button :disabled="disabled" @click="next">
|
|
<mdicon
|
|
class="icon"
|
|
name="skip-forward"
|
|
:title="$t('player.button.skip-forward')"
|
|
/>
|
|
</button>
|
|
</template>
|
|
|
|
<script>
|
|
import player from '@/api/player'
|
|
import { useQueueStore } from '@/stores/queue'
|
|
|
|
export default {
|
|
name: 'ControlPlayerNext',
|
|
setup() {
|
|
return { queueStore: useQueueStore() }
|
|
},
|
|
computed: {
|
|
disabled() {
|
|
return this.queueStore.isEmpty
|
|
}
|
|
},
|
|
methods: {
|
|
next() {
|
|
player.next()
|
|
}
|
|
}
|
|
}
|
|
</script>
|