mirror of
https://github.com/koel/koel
synced 2024-12-22 10:33:16 +00:00
14 lines
448 B
Vue
14 lines
448 B
Vue
<template>
|
|
<ExtraDrawerButton class="block md:hidden" @click.prevent.stop="toggleSidebar">
|
|
<Icon :icon="faBars" />
|
|
</ExtraDrawerButton>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { faBars } from '@fortawesome/free-solid-svg-icons'
|
|
import { eventBus } from '@/utils'
|
|
|
|
import ExtraDrawerButton from '@/components/layout/main-wrapper/extra-drawer/ExtraDrawerButton.vue'
|
|
|
|
const toggleSidebar = () => eventBus.emit('TOGGLE_SIDEBAR')
|
|
</script>
|