From 50dd404dabde01d740e58d0689d8f6508775d740 Mon Sep 17 00:00:00 2001 From: ArneBo Date: Fri, 14 Feb 2025 13:03:39 +0100 Subject: [PATCH] feat(front): [WIP] new upload process channel form #2081 --- front/src/components/channels/AlbumForm.vue | 11 +- front/src/components/channels/AlbumModal.vue | 96 +++++++--- front/src/components/channels/AlbumSelect.vue | 106 ++++++----- front/src/components/channels/UploadForm.vue | 175 +++++++++++------- front/src/ui/modals/Upload.vue | 2 +- front/src/views/channels/DetailOverview.vue | 13 +- 6 files changed, 244 insertions(+), 159 deletions(-) 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 @@ + + + - + +