updates
This commit is contained in:
@@ -411,10 +411,24 @@ const breadcrumbItems = computed(() => {
|
||||
const loadFiles = async (retryCount = 0) => {
|
||||
loading.value = true;
|
||||
try {
|
||||
const response = await $fetch('/api/files/list', {
|
||||
// Get current user email for email attachments
|
||||
const user = useDirectusUser();
|
||||
const userEmail = user.value?.email || '';
|
||||
|
||||
const response = await $fetch<{
|
||||
success: boolean;
|
||||
files: FileItem[];
|
||||
count: number;
|
||||
currentPath: string;
|
||||
}>('/api/files/list-with-attachments', {
|
||||
headers: {
|
||||
'x-tag': '094ut234'
|
||||
},
|
||||
params: {
|
||||
prefix: currentPath.value,
|
||||
recursive: false,
|
||||
includeEmailAttachments: true,
|
||||
userEmail: userEmail
|
||||
},
|
||||
timeout: 15000 // 15 second timeout
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user