koel/resources/assets/js/components/main-wrapper/extra/lyrics.vue

40 lines
855 B
Vue
Raw Normal View History

2015-12-13 04:42:28 +00:00
<template>
<article id="lyrics">
<div class="content">
<div v-if="lyrics">{{{ lyrics }}}</div>
<p class="none" v-else>No lyrics found. Are you not listening to Bach?</p>
</div>
</article>
2015-12-13 04:42:28 +00:00
</template>
<script>
import songStore from '../../../stores/song';
export default {
replace: false,
2015-12-13 04:42:28 +00:00
data() {
return {
lyrics: '',
};
},
methods: {
resetState() {
this.lyrics = '';
},
},
2015-12-13 04:42:28 +00:00
events: {
'song:info-loaded': function (song) {
this.lyrics = song.lyrics;
2015-12-13 04:42:28 +00:00
},
},
};
2015-12-13 04:42:28 +00:00
</script>
<style lang="sass">
@import "resources/assets/sass/partials/_vars.scss";
@import "resources/assets/sass/partials/_mixins.scss";
</style>