mirror of
https://github.com/koel/koel
synced 2024-11-24 21:23:06 +00:00
Some more refactoring
This commit is contained in:
parent
a03a191cf3
commit
9dd44ba394
2 changed files with 3 additions and 10 deletions
|
@ -137,9 +137,7 @@ export default {
|
|||
* Listen to sidebar:toggle event to show or hide the sidebar.
|
||||
* This should only be triggered on a mobile device.
|
||||
*/
|
||||
event.on('sidebar:toggle', () => {
|
||||
this.showing = !this.showing;
|
||||
});
|
||||
event.on('sidebar:toggle', () => this.showing = !this.showing);
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -73,13 +73,8 @@ export default {
|
|||
|
||||
created() {
|
||||
event.on({
|
||||
'overlay:show': options => {
|
||||
this.show(options);
|
||||
},
|
||||
|
||||
'overlay:hide': () => {
|
||||
this.hide();
|
||||
},
|
||||
'overlay:show': options => this.show(options),
|
||||
'overlay:hide': () => this.hide(),
|
||||
});
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue