From a05e509d36b40863ba061e68759b767f19c21964 Mon Sep 17 00:00:00 2001 From: ArneBo Date: Mon, 7 Apr 2025 13:33:37 +0200 Subject: [PATCH] fix(front): waiting for @petitminion to fix attibuted_to --- front/src/components/library/AlbumBase.vue | 3 +-- .../src/components/library/AlbumDropdown.vue | 24 ------------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/front/src/components/library/AlbumBase.vue b/front/src/components/library/AlbumBase.vue index a184b33a7..cadaf4f91 100644 --- a/front/src/components/library/AlbumBase.vue +++ b/front/src/components/library/AlbumBase.vue @@ -232,8 +232,7 @@ const remove = async () => { v-if="artistCredit[0] && store.state.auth.authenticated && artistCredit[0].artist.channel - /* attributed_to is a number - TODO: Re-implement the intention behind + /* TODO: Re-implement once attributed_to is not only a number && artistCredit[0].artist.attributed_to?.full_username === store.state.auth.fullUsername */" :is-loading="isLoading" diff --git a/front/src/components/library/AlbumDropdown.vue b/front/src/components/library/AlbumDropdown.vue index 53cd30a58..9c4dc1392 100644 --- a/front/src/components/library/AlbumDropdown.vue +++ b/front/src/components/library/AlbumDropdown.vue @@ -14,7 +14,6 @@ import EmbedWizard from '~/components/audio/EmbedWizard.vue' import Modal from '~/components/ui/Modal.vue' import Popover from '~/components/ui/Popover.vue' import PopoverItem from '~/components/ui/popover/PopoverItem.vue' -import DangerousButton from '~/components/common/DangerousButton.vue' import OptionsButton from '~/components/ui/button/Options.vue' 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 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) @@ -129,27 +126,6 @@ const open = ref(false) {{ t('components.library.AlbumDropdown.button.edit') }} - - - {{ t('components.library.AlbumDropdown.button.delete') }} - - -