[web] Close the menu when the volume menu is opened

This commit is contained in:
Alain Nussbaumer 2025-02-23 18:34:54 +01:00
parent 675b090c0b
commit acbc335897

View File

@ -32,10 +32,7 @@
</control-link> </control-link>
<control-player-play class="navbar-item" show_disabled_message /> <control-player-play class="navbar-item" show_disabled_message />
</template> </template>
<a <a class="navbar-item" @click="toggle">
class="navbar-item"
@click="uiStore.show_player_menu = !uiStore.show_player_menu"
>
<mdicon <mdicon
class="icon" class="icon"
:name="uiStore.show_player_menu ? 'chevron-down' : 'chevron-up'" :name="uiStore.show_player_menu ? 'chevron-down' : 'chevron-up'"
@ -125,6 +122,12 @@ export default {
current() { current() {
return this.queueStore.current return this.queueStore.current
} }
},
methods: {
toggle() {
this.uiStore.show_player_menu = !this.uiStore.show_player_menu
this.uiStore.show_burger_menu = false
}
} }
} }
</script> </script>