koel/resources/assets/js/components/layout/main-wrapper/extra-drawer/LogoutButton.vue

15 lines
468 B
Vue
Raw Normal View History

2024-04-04 22:20:42 +00:00
<template>
<ExtraDrawerButton v-koel-tooltip.left title="Log out" @click.prevent="logout">
<Icon :icon="faArrowRightFromBracket" />
</ExtraDrawerButton>
</template>
<script setup lang="ts">
import { faArrowRightFromBracket } from '@fortawesome/free-solid-svg-icons'
import { eventBus } from '@/utils'
import ExtraDrawerButton from '@/components/layout/main-wrapper/extra-drawer/ExtraDrawerButton.vue'
const logout = () => eventBus.emit('LOG_OUT')
</script>