Simplify sidebar info reset process

This commit is contained in:
An Phan 2016-09-23 17:55:20 +08:00
parent 69909c4229
commit 6052d4b3f2
No known key found for this signature in database
GPG key ID: 05536BB4BCDC02A2
4 changed files with 8 additions and 15 deletions

View file

@ -51,14 +51,13 @@ export default {
};
},
methods: {
/**
* Reset the component's current state.
*/
resetState() {
watch: {
album() {
this.showingFullWiki = false;
},
},
methods: {
/**
* Shuffle all songs in the current album.
*/

View file

@ -41,14 +41,13 @@ export default {
};
},
methods: {
/**
* Reset the component's current state.
*/
resetState() {
watch: {
artist() {
this.showingFullBio = false;
},
},
methods: {
/**
* Shuffle all songs performed by the current song's artist.
*/

View file

@ -99,7 +99,6 @@ export default {
resetState() {
this.currentView = 'lyrics';
this.song = songStore.stub;
invokeMap(this.$refs, 'resetState');
},
},

View file

@ -10,10 +10,6 @@
<script>
export default {
props: ['song'],
methods: {
resetState() {},
},
};
</script>