fix(front):only request playlist.libfollow if not my playlist
This commit is contained in:
parent
c9600fd0ac
commit
e85ae5d9a1
|
@ -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 }}
|
||||
</PopoverItem>
|
||||
<PopoverItem
|
||||
v-if="playlist && playlistFollowInfo"
|
||||
:title="playlistFollowInfo.tooltip"
|
||||
:icon="playlistFollowInfo.icon"
|
||||
:disabled="playlistFollowInfo.disabled"
|
||||
v-if="playlist && playlistLibraryFollowInfo && store.state.auth.profile && playlist.actor.full_username != store.state.auth.fullUsername"
|
||||
:title="playlistLibraryFollowInfo.tooltip"
|
||||
:icon="playlistLibraryFollowInfo.icon"
|
||||
:disabled="playlistLibraryFollowInfo.disabled"
|
||||
@click.stop.prevent="requestPlaylistUploadsAccess(playlist)"
|
||||
>
|
||||
{{ playlistFollowInfo.label }}
|
||||
{{ playlistLibraryFollowInfo.label }}
|
||||
</PopoverItem>
|
||||
</template>
|
||||
</Popover>
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue