mirror of
https://github.com/koel/koel
synced 2024-12-24 03:23:06 +00:00
abb0438c8d
This fixes a bug with Spotify integration that occurs if an installation isn't connected to Last.fm. Closing #1730 and #1653.
11 lines
360 B
TypeScript
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')
|
|
}
|
|
}
|