mirror of
https://github.com/koel/koel
synced 2025-02-17 22:08:28 +00:00
Eliminate dead code
This commit is contained in:
parent
6ccf2af37a
commit
cd94c4e38a
6 changed files with 1 additions and 29 deletions
|
@ -110,9 +110,7 @@ export default {
|
||||||
songInfo.fetch(song).then(song => {
|
songInfo.fetch(song).then(song => {
|
||||||
this.song = song
|
this.song = song
|
||||||
})
|
})
|
||||||
},
|
}
|
||||||
|
|
||||||
'koel:teardown': () => this.resetState()
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,11 +55,6 @@ export default {
|
||||||
*/
|
*/
|
||||||
'koel:ready': () => this.displayMore(),
|
'koel:ready': () => this.displayMore(),
|
||||||
|
|
||||||
'koel:teardown': () => {
|
|
||||||
this.q = ''
|
|
||||||
this.numOfItems = 9
|
|
||||||
},
|
|
||||||
|
|
||||||
'filter:changed': q => {
|
'filter:changed': q => {
|
||||||
this.q = q
|
this.q = q
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,11 +57,6 @@ export default {
|
||||||
*/
|
*/
|
||||||
'koel:ready': () => this.displayMore(),
|
'koel:ready': () => this.displayMore(),
|
||||||
|
|
||||||
'koel:teardown': () => {
|
|
||||||
this.q = ''
|
|
||||||
this.numOfItems = 9
|
|
||||||
},
|
|
||||||
|
|
||||||
'filter:changed': q => {
|
'filter:changed': q => {
|
||||||
this.q = q
|
this.q = q
|
||||||
}
|
}
|
||||||
|
|
|
@ -192,10 +192,6 @@ export default {
|
||||||
*/
|
*/
|
||||||
'main-content-view:load': view => {
|
'main-content-view:load': view => {
|
||||||
this.viewingQueue = view === 'queue'
|
this.viewingQueue = view === 'queue'
|
||||||
},
|
|
||||||
|
|
||||||
'koel:teardown': () => {
|
|
||||||
this.song = songStore.stub
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,11 +39,6 @@ export default {
|
||||||
event.on('search:toggle', () => {
|
event.on('search:toggle', () => {
|
||||||
this.showing = !this.showing
|
this.showing = !this.showing
|
||||||
})
|
})
|
||||||
|
|
||||||
event.on('koel:teardown', () => {
|
|
||||||
this.q = ''
|
|
||||||
this.filter()
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -42,12 +42,5 @@ export default {
|
||||||
$.scrollTo(this.$refs.wrapper, 0, 500)
|
$.scrollTo(this.$refs.wrapper, 0, 500)
|
||||||
this.showBackToTop = false
|
this.showBackToTop = false
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
|
||||||
created () {
|
|
||||||
event.on('koel:teardown', () => {
|
|
||||||
this.numOfItems = 30
|
|
||||||
this.showBackToTop = false
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue