chore(upload): [WIP] update components #2081
This commit is contained in:
parent
81731df2ef
commit
d9113e0600
|
@ -77,6 +77,8 @@ const modalTitle = computed(()=>
|
|||
({ 'selectDestination' : 'Upload', 'uploadFiles' : 'Select files for upload', 'uploadsInProgress': 'Uploading...'}
|
||||
[state.value.page])
|
||||
)
|
||||
|
||||
const channelUpload = ref();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -133,14 +135,14 @@ const modalTitle = computed(()=>
|
|||
|
||||
<!-- -->
|
||||
|
||||
<ChannelUpload v-if="state.uploadDestination === 'channel'" />
|
||||
<ChannelUpload ref="channelUpload" v-if="state.uploadDestination === 'channel'" />
|
||||
|
||||
<!-- -->
|
||||
|
||||
<!-- Privacy Slider -->
|
||||
<LibraryUpload v-if="state.uploadDestination === 'library'"
|
||||
<!-- <LibraryUpload v-if="state.uploadDestination === 'library'"
|
||||
:library="{uuid: 'string'} /* Get corresponding library from user */">
|
||||
</LibraryUpload>
|
||||
</LibraryUpload> -->
|
||||
{{ state.files }}
|
||||
</Layout>
|
||||
|
||||
|
@ -157,9 +159,11 @@ const modalTitle = computed(()=>
|
|||
<Spacer size-16 />
|
||||
<Button primary v-if="state.page === 'uploadFiles'">
|
||||
{{ t('components.channels.UploadModal.button.finishLater') }} /
|
||||
{{ t('components.channels.UploadModal.button.publish') }} /
|
||||
{{ t('components.channels.UploadModal.button.update') }}
|
||||
</Button>
|
||||
<Button v-if="channelUpload" :onClick="() => channelUpload.publish()">
|
||||
{{ t('components.channels.UploadModal.button.publish') }}
|
||||
</Button>
|
||||
</template>
|
||||
</Modal>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue