mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
Close equalizer if clicked outside
This commit is contained in:
parent
aa3260aff4
commit
8fb5031dc3
1 changed files with 5 additions and 1 deletions
|
@ -35,7 +35,7 @@
|
|||
</div>
|
||||
|
||||
<div class="other-controls" :class="{ 'with-gradient': prefs.showExtraPanel }">
|
||||
<div class="wrapper">
|
||||
<div class="wrapper" v-koel-clickaway="closeEqualizer">
|
||||
<equalizer v-if="useEqualizer" v-show="showEqualizer"></equalizer>
|
||||
<sound-bar v-show="song.playbackState === 'playing'"></sound-bar>
|
||||
<i class="like control fa fa-heart" :class="{ liked: song.liked }"
|
||||
|
@ -207,6 +207,10 @@ export default {
|
|||
toggleExtraPanel() {
|
||||
preferenceStore.set('showExtraPanel', !this.prefs.showExtraPanel);
|
||||
},
|
||||
|
||||
closeEqualizer() {
|
||||
this.showEqualizer = false;
|
||||
},
|
||||
},
|
||||
|
||||
created() {
|
||||
|
|
Loading…
Reference in a new issue