kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
lint(front)
rodzic
112bae612d
commit
1cbb457fad
|
@ -166,18 +166,18 @@ watch(showDeleteModal, (newValue) => {
|
||||||
v-if="track"
|
v-if="track"
|
||||||
:h1="track.title"
|
:h1="track.title"
|
||||||
:action="{
|
:action="{
|
||||||
text: labels.download,
|
text: labels.download,
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
to: downloadUrl,
|
to: downloadUrl,
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
solid: true,
|
solid: true,
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
primary: true,
|
primary: true,
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
icon: 'bi-download',
|
icon: 'bi-download',
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
lowHeight: true
|
lowHeight: true
|
||||||
}"
|
}"
|
||||||
page-heading
|
page-heading
|
||||||
>
|
>
|
||||||
<template #image>
|
<template #image>
|
||||||
|
@ -186,19 +186,19 @@ watch(showDeleteModal, (newValue) => {
|
||||||
v-lazy="store.getters['instance/absoluteUrl'](track.cover.urls.large_square_crop)"
|
v-lazy="store.getters['instance/absoluteUrl'](track.cover.urls.large_square_crop)"
|
||||||
alt=""
|
alt=""
|
||||||
class="channel-image"
|
class="channel-image"
|
||||||
/>
|
>
|
||||||
<img
|
<img
|
||||||
v-if="track.album && track.album.cover"
|
v-if="track.album && track.album.cover"
|
||||||
v-lazy="store.getters['instance/absoluteUrl'](track.album.cover.urls.large_square_crop)"
|
v-lazy="store.getters['instance/absoluteUrl'](track.album.cover.urls.large_square_crop)"
|
||||||
alt=""
|
alt=""
|
||||||
class="channel-image"
|
class="channel-image"
|
||||||
/>
|
>
|
||||||
<img
|
<img
|
||||||
v-else
|
v-else
|
||||||
alt=""
|
alt=""
|
||||||
class="channel-image"
|
class="channel-image"
|
||||||
src="../../assets/audio/default-cover.png"
|
src="../../assets/audio/default-cover.png"
|
||||||
/>
|
>
|
||||||
</template>
|
</template>
|
||||||
<artist-credit-label :artist-credit="track.artist_credit" />
|
<artist-credit-label :artist-credit="track.artist_credit" />
|
||||||
<div class="meta">
|
<div class="meta">
|
||||||
|
@ -293,16 +293,16 @@ watch(showDeleteModal, (newValue) => {
|
||||||
|
|
||||||
<PopoverItem
|
<PopoverItem
|
||||||
v-if="artist &&
|
v-if="artist &&
|
||||||
store.state.auth.authenticated &&
|
store.state.auth.authenticated &&
|
||||||
artist.channel &&
|
artist.channel &&
|
||||||
artist.attributed_to?.full_username === store.state.auth.fullUsername"
|
artist.attributed_to?.full_username === store.state.auth.fullUsername"
|
||||||
icon="bi-trash"
|
icon="bi-trash"
|
||||||
@click="showDeleteModal = true"
|
@click="showDeleteModal = true"
|
||||||
>
|
>
|
||||||
{{ t('components.library.TrackBase.button.delete') }}
|
{{ t('components.library.TrackBase.button.delete') }}
|
||||||
</PopoverItem>
|
</PopoverItem>
|
||||||
|
|
||||||
<hr />
|
<hr>
|
||||||
|
|
||||||
<PopoverItem
|
<PopoverItem
|
||||||
v-for="obj in getReportableObjects({ track })"
|
v-for="obj in getReportableObjects({ track })"
|
||||||
|
@ -313,14 +313,14 @@ watch(showDeleteModal, (newValue) => {
|
||||||
{{ obj.label }}
|
{{ obj.label }}
|
||||||
</PopoverItem>
|
</PopoverItem>
|
||||||
|
|
||||||
<hr />
|
<hr>
|
||||||
|
|
||||||
<PopoverItem
|
<PopoverItem
|
||||||
v-if="store.state.auth.availablePermissions['library']"
|
v-if="store.state.auth.availablePermissions['library']"
|
||||||
:to="{
|
:to="{
|
||||||
name: 'manage.library.tracks.detail',
|
name: 'manage.library.tracks.detail',
|
||||||
params: { id: track.id }
|
params: { id: track.id }
|
||||||
}"
|
}"
|
||||||
icon="bi-wrench"
|
icon="bi-wrench"
|
||||||
>
|
>
|
||||||
{{ t('components.library.TrackBase.link.moderation') }}
|
{{ t('components.library.TrackBase.link.moderation') }}
|
||||||
|
@ -339,7 +339,7 @@ watch(showDeleteModal, (newValue) => {
|
||||||
</Popover>
|
</Popover>
|
||||||
</Layout>
|
</Layout>
|
||||||
</Header>
|
</Header>
|
||||||
<hr />
|
<hr>
|
||||||
<Layout
|
<Layout
|
||||||
flex
|
flex
|
||||||
gap-8
|
gap-8
|
||||||
|
|
Ładowanie…
Reference in New Issue