diff --git a/front/src/components/channels/AlbumForm.vue b/front/src/components/channels/AlbumForm.vue index a4d52515e..09cc5bb95 100644 --- a/front/src/components/channels/AlbumForm.vue +++ b/front/src/components/channels/AlbumForm.vue @@ -15,14 +15,11 @@ interface Events { (e: 'created'): void } -interface Props { - channel: Channel -} +const channel = defineModel({required: true}) const { t } = useI18n() const emit = defineEmits() -const props = defineProps() const title = ref('') @@ -35,7 +32,7 @@ const submit = async () => { try { await axios.post('albums/', { title: title.value, - artist: props.channel.artist?.id + artist: channel.value.artist?.id }) emit('created') @@ -77,12 +74,10 @@ defineExpose({
-
diff --git a/front/src/components/channels/AlbumModal.vue b/front/src/components/channels/AlbumModal.vue index 5bdf0eb57..df7304d32 100644 --- a/front/src/components/channels/AlbumModal.vue +++ b/front/src/components/channels/AlbumModal.vue @@ -1,63 +1,105 @@ + + + - + +