mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 17:19:16 +02:00
Edits for artists and albums
This commit is contained in:
parent
2836b11190
commit
55d0e52c55
15 changed files with 523 additions and 151 deletions
41
front/src/components/library/ArtistEdit.vue
Normal file
41
front/src/components/library/ArtistEdit.vue
Normal file
|
@ -0,0 +1,41 @@
|
|||
<template>
|
||||
|
||||
<section class="ui vertical stripe segment">
|
||||
<div class="ui text container">
|
||||
<h2>
|
||||
<translate v-if="canEdit" key="1" translate-context="Content/*/Title">Edit this artist</translate>
|
||||
<translate v-else key="2" translate-context="Content/*/Title">Suggest an edit on this artist</translate>
|
||||
</h2>
|
||||
<div class="ui message" v-if="!object.is_local">
|
||||
<translate translate-context="Content/*/Message">This object is managed by another server, you cannot edit it.</translate>
|
||||
</div>
|
||||
<edit-form
|
||||
v-else
|
||||
:object-type="objectType"
|
||||
:object="object"
|
||||
:can-edit="canEdit"></edit-form>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import axios from "axios"
|
||||
|
||||
import EditForm from '@/components/library/EditForm'
|
||||
export default {
|
||||
props: ["objectType", "object", "libraries"],
|
||||
data() {
|
||||
return {
|
||||
id: this.object.id,
|
||||
}
|
||||
},
|
||||
components: {
|
||||
EditForm
|
||||
},
|
||||
computed: {
|
||||
canEdit () {
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue