2015-12-13 04:42:28 +00:00
|
|
|
<template>
|
2015-12-19 16:36:44 +00:00
|
|
|
<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 {
|
2015-12-19 16:36:44 +00:00
|
|
|
replace: false,
|
|
|
|
|
2015-12-13 04:42:28 +00:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
lyrics: '',
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
2015-12-19 16:36:44 +00:00
|
|
|
methods: {
|
|
|
|
resetState() {
|
|
|
|
this.lyrics = '';
|
|
|
|
},
|
|
|
|
},
|
2015-12-13 04:42:28 +00:00
|
|
|
|
2015-12-19 16:36:44 +00:00
|
|
|
events: {
|
|
|
|
'song:info-loaded': function (song) {
|
|
|
|
this.lyrics = song.lyrics;
|
2015-12-13 04:42:28 +00:00
|
|
|
},
|
|
|
|
},
|
2015-12-19 16:36:44 +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>
|