chore(upload): [WIP] update components #2081

This commit is contained in:
upsiflu 2025-02-06 16:12:12 +01:00
parent 81731df2ef
commit d9113e0600
1 changed files with 8 additions and 4 deletions

View File

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