fix(front): waiting for @petitminion to fix attibuted_to
This commit is contained in:
parent
ab715611ab
commit
a05e509d36
|
@ -232,8 +232,7 @@ const remove = async () => {
|
||||||
v-if="artistCredit[0] &&
|
v-if="artistCredit[0] &&
|
||||||
store.state.auth.authenticated &&
|
store.state.auth.authenticated &&
|
||||||
artistCredit[0].artist.channel
|
artistCredit[0].artist.channel
|
||||||
/* attributed_to is a number
|
/* TODO: Re-implement once attributed_to is not only a number
|
||||||
TODO: Re-implement the intention behind
|
|
||||||
&& artistCredit[0].artist.attributed_to?.full_username === store.state.auth.fullUsername
|
&& artistCredit[0].artist.attributed_to?.full_username === store.state.auth.fullUsername
|
||||||
*/"
|
*/"
|
||||||
:is-loading="isLoading"
|
:is-loading="isLoading"
|
||||||
|
|
|
@ -14,7 +14,6 @@ import EmbedWizard from '~/components/audio/EmbedWizard.vue'
|
||||||
import Modal from '~/components/ui/Modal.vue'
|
import Modal from '~/components/ui/Modal.vue'
|
||||||
import Popover from '~/components/ui/Popover.vue'
|
import Popover from '~/components/ui/Popover.vue'
|
||||||
import PopoverItem from '~/components/ui/popover/PopoverItem.vue'
|
import PopoverItem from '~/components/ui/popover/PopoverItem.vue'
|
||||||
import DangerousButton from '~/components/common/DangerousButton.vue'
|
|
||||||
import OptionsButton from '~/components/ui/button/Options.vue'
|
import OptionsButton from '~/components/ui/button/Options.vue'
|
||||||
|
|
||||||
interface Events {
|
interface Events {
|
||||||
|
@ -52,8 +51,6 @@ const isEmbedable = computed(() => (props.publicLibraries.length))
|
||||||
const musicbrainzUrl = computed(() => props.object?.mbid ? `https://musicbrainz.org/release/${props.object.mbid}` : null)
|
const musicbrainzUrl = computed(() => props.object?.mbid ? `https://musicbrainz.org/release/${props.object.mbid}` : null)
|
||||||
const discogsUrl = computed(() => `https://discogs.com/search/?type=release&title=${encodeURI(props.object?.title)}&artist=${encodeURI(props.object?.artist_credit[0].artist.name)}`)
|
const discogsUrl = computed(() => `https://discogs.com/search/?type=release&title=${encodeURI(props.object?.title)}&artist=${encodeURI(props.object?.artist_credit[0].artist.name)}`)
|
||||||
|
|
||||||
const remove = () => emit('remove')
|
|
||||||
|
|
||||||
const open = ref(false)
|
const open = ref(false)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -129,27 +126,6 @@ const open = ref(false)
|
||||||
{{ t('components.library.AlbumDropdown.button.edit') }}
|
{{ t('components.library.AlbumDropdown.button.edit') }}
|
||||||
</PopoverItem>
|
</PopoverItem>
|
||||||
|
|
||||||
<PopoverItem
|
|
||||||
v-if="artistCredit[0] &&
|
|
||||||
store.state.auth.authenticated &&
|
|
||||||
artistCredit[0].artist.channel
|
|
||||||
/*
|
|
||||||
|
|
||||||
TODO: Re-implement what was the intention behind the following line:
|
|
||||||
|
|
||||||
&& artistCredit[0].artist.attributed_to?.full_username === store.state.auth.fullUsername
|
|
||||||
|
|
||||||
*/"
|
|
||||||
>
|
|
||||||
<DangerousButton
|
|
||||||
:is-loading="isLoading"
|
|
||||||
icon="bi-trash"
|
|
||||||
@confirm="remove()"
|
|
||||||
>
|
|
||||||
{{ t('components.library.AlbumDropdown.button.delete') }}
|
|
||||||
</DangerousButton>
|
|
||||||
</PopoverItem>
|
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<PopoverItem
|
<PopoverItem
|
||||||
|
|
Loading…
Reference in New Issue