mirror of
https://github.com/koel/koel
synced 2024-12-22 10:33:16 +00:00
26 lines
864 B
Vue
26 lines
864 B
Vue
<template>
|
|
<ExtraDrawerButton
|
|
v-koel-tooltip.left
|
|
:title="shouldNotifyNewVersion ? 'New version available!' : 'About Koel'"
|
|
@click.prevent="openAboutKoelModal"
|
|
>
|
|
<Icon :icon="faInfoCircle" />
|
|
<span
|
|
v-if="shouldNotifyNewVersion"
|
|
class="absolute w-[10px] aspect-square right-px top-px rounded-full bg-k-highlight"
|
|
data-testid="new-version-indicator"
|
|
/>
|
|
</ExtraDrawerButton>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { faInfoCircle } from '@fortawesome/free-solid-svg-icons'
|
|
import { eventBus } from '@/utils'
|
|
import { useNewVersionNotification } from '@/composables'
|
|
|
|
import ExtraDrawerButton from '@/components/layout/main-wrapper/extra-drawer/ExtraDrawerButton.vue'
|
|
|
|
const { shouldNotifyNewVersion } = useNewVersionNotification()
|
|
|
|
const openAboutKoelModal = () => eventBus.emit('MODAL_SHOW_ABOUT_KOEL')
|
|
</script>
|