From 10eebb945616980dc0a81896656e0dcd514b4037 Mon Sep 17 00:00:00 2001 From: ArneBo Date: Wed, 12 Feb 2025 13:06:58 +0100 Subject: [PATCH] refactor(front): create channel modal in user profile --- front/src/components/audio/ChannelForm.vue | 71 +++++++++----------- front/src/style/components/_placeholder.scss | 7 +- front/src/style/globals/_channels.scss | 7 +- front/src/views/auth/ProfileOverview.vue | 38 +++-------- 4 files changed, 55 insertions(+), 68 deletions(-) diff --git a/front/src/components/audio/ChannelForm.vue b/front/src/components/audio/ChannelForm.vue index 2fd35dbfa..951c40d07 100644 --- a/front/src/components/audio/ChannelForm.vue +++ b/front/src/components/audio/ChannelForm.vue @@ -9,6 +9,11 @@ import axios from 'axios' import AttachmentInput from '~/components/common/AttachmentInput.vue' import TagsSelector from '~/components/library/TagsSelector.vue' +import Layout from '~/components/ui/Layout.vue' +import Alert from '~/components/ui/Alert.vue' +import Input from '~/components/ui/Input.vue' +import Pills from '~/components/ui/Pills.vue' + interface Events { (e: 'category', contentCategory: ContentCategory): void (e: 'submittable', value: boolean): void @@ -41,6 +46,10 @@ const newValues = reactive({ metadata: { ...(props.object?.metadata ?? {}) } }) +const tagList = computed(() => ({ + custom: newValues.tags +})) + const creating = computed(() => props.object === null) const categoryChoices = computed(() => [ { @@ -155,14 +164,12 @@ defineExpose({