From e85ae5d9a1ff5fddcf6e821631bfd0d72e481b5c Mon Sep 17 00:00:00 2001 From: Petitminion Date: Wed, 7 May 2025 18:02:02 +0200 Subject: [PATCH] fix(front):only request playlist.libfollow if not my playlist --- front/src/components/audio/PlayButton.vue | 12 ++++++------ front/src/utils/utils.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/front/src/components/audio/PlayButton.vue b/front/src/components/audio/PlayButton.vue index dfc8e4600..523cbce71 100644 --- a/front/src/components/audio/PlayButton.vue +++ b/front/src/components/audio/PlayButton.vue @@ -108,7 +108,7 @@ const labels = computed(() => ({ const isOpen = ref(false) -const playlistFollowInfo = computed(() => { +const playlistLibraryFollowInfo = computed(() => { const playlist = props.playlist; if (!playlist) return null; @@ -268,13 +268,13 @@ const playlistFollowInfo = computed(() => { {{ obj.label }} - {{ playlistFollowInfo.label }} + {{ playlistLibraryFollowInfo.label }} diff --git a/front/src/utils/utils.ts b/front/src/utils/utils.ts index 848103ce4..99a63e97d 100644 --- a/front/src/utils/utils.ts +++ b/front/src/utils/utils.ts @@ -2,8 +2,8 @@ import type { Track, Album, ArtistCredit, QueueItemSource } from '~/types' import type { components } from '~/generated/types' import { useStore } from '~/store' import type { QueueTrack } from '~/composables/audio/queue' +import store from '~/store' -const store = useStore() export function generateTrackCreditString (track: Track | Album | null): string | null { if (!track || !track.artist_credit || track.artist_credit.length === 0) {