koel/resources/assets/js/composables/useThirdPartyServices.ts
Phan An abb0438c8d
fix: buggy Spotify integration (#1731)
This fixes a bug with Spotify integration that occurs if an installation isn't connected to Last.fm. Closing #1730 and #1653.
2023-12-27 12:49:28 +01:00

11 lines
360 B
TypeScript

import { toRef } from 'vue'
import { commonStore } from '@/stores'
export const useThirdPartyServices = () => {
return {
useLastfm: toRef(commonStore.state, 'use_last_fm'),
useYouTube: toRef(commonStore.state, 'use_you_tube'),
useAppleMusic: toRef(commonStore.state, 'use_i_tunes'),
useSpotify: toRef(commonStore.state, 'use_spotify')
}
}