mirror of
https://github.com/owntone/owntone-server.git
synced 2025-07-16 12:21:59 -04:00
36 lines
667 B
Vue
36 lines
667 B
Vue
<template>
|
|
<button :class="{ 'is-dark': playerStore.showLyrics }" @click="toggle">
|
|
<mdicon
|
|
class="icon"
|
|
:name="icon"
|
|
:size="16"
|
|
:title="$t('player.button.toggle-lyrics')"
|
|
/>
|
|
</button>
|
|
</template>
|
|
|
|
<script>
|
|
import { usePlayerStore } from '@/stores/player'
|
|
|
|
export default {
|
|
name: 'ControlPlayerLyrics',
|
|
setup() {
|
|
return {
|
|
playerStore: usePlayerStore()
|
|
}
|
|
},
|
|
computed: {
|
|
icon() {
|
|
return this.playerStore.showLyrics
|
|
? 'script-text-play'
|
|
: 'script-text-outline'
|
|
}
|
|
},
|
|
methods: {
|
|
toggle() {
|
|
this.playerStore.showLyrics = !this.playerStore.showLyrics
|
|
}
|
|
}
|
|
}
|
|
</script>
|