koel/resources/assets/js/components/ui/SidebarMenuToggleButton.vue

15 lines
448 B
Vue
Raw Normal View History

2022-10-13 15:18:47 +00:00
<template>
2024-04-04 22:20:42 +00:00
<ExtraDrawerButton class="block md:hidden" @click.prevent.stop="toggleSidebar">
2023-11-10 13:16:06 +00:00
<Icon :icon="faBars" />
2024-04-04 22:20:42 +00:00
</ExtraDrawerButton>
2022-10-13 15:18:47 +00:00
</template>
<script lang="ts" setup>
import { faBars } from '@fortawesome/free-solid-svg-icons'
import { eventBus } from '@/utils'
2024-04-04 22:20:42 +00:00
import ExtraDrawerButton from '@/components/layout/main-wrapper/extra-drawer/ExtraDrawerButton.vue'
2022-10-13 15:18:47 +00:00
const toggleSidebar = () => eventBus.emit('TOGGLE_SIDEBAR')
</script>