diff --git a/components/object/list.vue b/components/object/list.vue index 9786e1e..36ef206 100644 --- a/components/object/list.vue +++ b/components/object/list.vue @@ -22,7 +22,13 @@ {{ t('Upload File') }}/{{ t('Folder') }} - + {{ t('Delete Selected') }} @@ -37,7 +43,12 @@ - + @@ -51,18 +62,29 @@ - { - uploadPickerVisible = val - refresh() - } - " /> - { - newObjectFormVisible = val - refresh() - } - " /> + { + uploadPickerVisible = val + refresh() + } + " + /> + { + newObjectFormVisible = val + refresh() + } + " + /> @@ -209,8 +231,9 @@ const fetchObjects = async (): Promise => { } const asyncDataCacheKey = computed(() => { - return `objects-${bucketName.value}-${prefix.value}-${continuationToken.value || 'start'}-${searchTerm.value || 'all'}-${showDeleted.value ? 'withDeleted' : 'withoutDeleted' - }` + return `objects-${bucketName.value}-${prefix.value}-${continuationToken.value || 'start'}-${searchTerm.value || 'all'}-${ + showDeleted.value ? 'withDeleted' : 'withoutDeleted' + }` }) const displayKey = (key: string) => { @@ -296,14 +319,14 @@ const columns = computed[]>(() => { h('div', { class: 'flex items-center gap-2' }, [ row.original.type === 'object' ? h( - Button, - { - variant: 'outline', - size: 'sm', - onClick: () => downloadFile(row.original.Key), - }, - () => [h(Icon, { name: 'ri:download-cloud-2-line', class: 'size-4' }), h('span', t('Download'))] - ) + Button, + { + variant: 'outline', + size: 'sm', + onClick: () => downloadFile(row.original.Key), + }, + () => [h(Icon, { name: 'ri:download-cloud-2-line', class: 'size-4' }), h('span', t('Download'))] + ) : null, h( Button,