feat(upload): [WIP] Choose between `Library` and `Channel` uploader
This commit is contained in:
parent
ae8ed94d5b
commit
89d8ee5b9e
|
@ -16,8 +16,8 @@ import Pagination from '~/components/ui/Pagination.vue';
|
|||
import type { Actor, Channel } from '~/types';
|
||||
import FileUploadWidget from '~/components/library/FileUploadWidget.vue';
|
||||
import type { VueUploadItem } from 'vue-upload-component';
|
||||
import UploadForm from '~/components/channels/UploadForm.vue';
|
||||
import FileUpload from '~/components/library/FileUpload.vue';
|
||||
import ChannelUpload from '~/components/channels/UploadForm.vue';
|
||||
import LibraryUpload from '~/components/library/FileUpload.vue';
|
||||
|
||||
const { t } = useI18n()
|
||||
const store = useStore()
|
||||
|
@ -146,8 +146,12 @@ const channels = [0,1,2,3,4].map(dummyChannel)
|
|||
/> -->
|
||||
|
||||
<!-- <UploadForm></UploadForm> -->
|
||||
<FileUpload :library="{ uuid: 'string'}"></FileUpload>
|
||||
<LibraryUpload v-if="state.uploadDestination==='library'"
|
||||
:library="{uuid: 'string'}">
|
||||
</LibraryUpload>
|
||||
{{ state.files }}
|
||||
|
||||
<ChannelUpload v-if="state.uploadDestination==='channel'" />
|
||||
</Layout>
|
||||
|
||||
<template #actions>
|
||||
|
|
Loading…
Reference in New Issue