koel/resources/assets/js/components/profile-preferences/SpotifyIntegration.vue

38 lines
1 KiB
Vue
Raw Normal View History

<template>
2024-04-04 22:20:42 +00:00
<section class="text-k-text-secondary">
<h3 class="text-2xl mb-2">
<span class="mr-2 text-[#1db954]">
<Icon :icon="faSpotify" />
</span>
Spotify Integration
2024-04-03 14:48:52 +00:00
</h3>
<div v-if="useSpotify">
<p>
Spotify integration is enabled.
Koel will attempt to retrieve album arts and artist images from Spotify when a song is played, if needed.
</p>
</div>
<div v-else>
<p>
Spotify integration is not enabled.
<span v-if="isAdmin" data-testid="spotify-admin-instruction">
2024-03-17 17:55:47 +00:00
Check
2024-04-04 22:20:42 +00:00
<a href="https://docs.koel.dev/service-integrations#spotify" target="_blank">
2024-03-17 17:55:47 +00:00
Documentation
</a>
for instructions.
</span>
</p>
</div>
</section>
</template>
<script lang="ts" setup>
import { faSpotify } from '@fortawesome/free-brands-svg-icons'
2024-04-04 22:20:42 +00:00
import { useAuthorization, useThirdPartyServices } from '@/composables'
2024-04-04 22:20:42 +00:00
const { isAdmin } = useAuthorization()
const { useSpotify } = useThirdPartyServices()
</script>