mirror of
https://github.com/koel/koel
synced 2024-11-24 21:23:06 +00:00
Simplify sidebar info reset process
This commit is contained in:
parent
69909c4229
commit
6052d4b3f2
4 changed files with 8 additions and 15 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -99,7 +99,6 @@ export default {
|
|||
resetState() {
|
||||
this.currentView = 'lyrics';
|
||||
this.song = songStore.stub;
|
||||
invokeMap(this.$refs, 'resetState');
|
||||
},
|
||||
},
|
||||
|
||||
|
|
|
@ -10,10 +10,6 @@
|
|||
<script>
|
||||
export default {
|
||||
props: ['song'],
|
||||
|
||||
methods: {
|
||||
resetState() {},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue