mirror of
https://github.com/koel/koel
synced 2024-12-30 06:23:05 +00:00
16 lines
421 B
Vue
16 lines
421 B
Vue
|
<template>
|
||
|
<SidebarItem screen="YouTube" href="#/youtube" :icon="faYoutube">{{ title }}</SidebarItem>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts" setup>
|
||
|
import { faYoutube } from '@fortawesome/free-brands-svg-icons'
|
||
|
import { ref } from 'vue'
|
||
|
import { eventBus } from '@/utils'
|
||
|
|
||
|
import SidebarItem from './SidebarItem.vue'
|
||
|
|
||
|
const title = ref('')
|
||
|
|
||
|
eventBus.on('PLAY_YOUTUBE_VIDEO', payload => (title.value = payload.title))
|
||
|
</script>
|