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 isOpen = ref(false)
|
||||||
|
|
||||||
const playlistFollowInfo = computed(() => {
|
const playlistLibraryFollowInfo = computed(() => {
|
||||||
const playlist = props.playlist;
|
const playlist = props.playlist;
|
||||||
if (!playlist) return null;
|
if (!playlist) return null;
|
||||||
|
|
||||||
|
@ -268,13 +268,13 @@ const playlistFollowInfo = computed(() => {
|
||||||
{{ obj.label }}
|
{{ obj.label }}
|
||||||
</PopoverItem>
|
</PopoverItem>
|
||||||
<PopoverItem
|
<PopoverItem
|
||||||
v-if="playlist && playlistFollowInfo"
|
v-if="playlist && playlistLibraryFollowInfo && store.state.auth.profile && playlist.actor.full_username != store.state.auth.fullUsername"
|
||||||
:title="playlistFollowInfo.tooltip"
|
:title="playlistLibraryFollowInfo.tooltip"
|
||||||
:icon="playlistFollowInfo.icon"
|
:icon="playlistLibraryFollowInfo.icon"
|
||||||
:disabled="playlistFollowInfo.disabled"
|
:disabled="playlistLibraryFollowInfo.disabled"
|
||||||
@click.stop.prevent="requestPlaylistUploadsAccess(playlist)"
|
@click.stop.prevent="requestPlaylistUploadsAccess(playlist)"
|
||||||
>
|
>
|
||||||
{{ playlistFollowInfo.label }}
|
{{ playlistLibraryFollowInfo.label }}
|
||||||
</PopoverItem>
|
</PopoverItem>
|
||||||
</template>
|
</template>
|
||||||
</Popover>
|
</Popover>
|
||||||
|
|
|
@ -2,8 +2,8 @@ import type { Track, Album, ArtistCredit, QueueItemSource } from '~/types'
|
||||||
import type { components } from '~/generated/types'
|
import type { components } from '~/generated/types'
|
||||||
import { useStore } from '~/store'
|
import { useStore } from '~/store'
|
||||||
import type { QueueTrack } from '~/composables/audio/queue'
|
import type { QueueTrack } from '~/composables/audio/queue'
|
||||||
|
import store from '~/store'
|
||||||
|
|
||||||
const store = useStore()
|
|
||||||
|
|
||||||
export function generateTrackCreditString (track: Track | Album | null): string | null {
|
export function generateTrackCreditString (track: Track | Album | null): string | null {
|
||||||
if (!track || !track.artist_credit || track.artist_credit.length === 0) {
|
if (!track || !track.artist_credit || track.artist_credit.length === 0) {
|
||||||
|
|
Loading…
Reference in New Issue