basic text editor
This commit is contained in:
@@ -245,20 +245,11 @@ export async function uploadToWarren(
|
||||
try {
|
||||
await promise;
|
||||
} catch {
|
||||
toast.error('Upload', {
|
||||
id: 'UPLOAD_FILE_TOAST',
|
||||
description: `Failed to upload`,
|
||||
});
|
||||
return { success: false };
|
||||
}
|
||||
|
||||
await refreshNuxtData('current-directory');
|
||||
|
||||
toast.success('Upload', {
|
||||
id: 'UPLOAD_FILE_TOAST',
|
||||
description: `Successfully uploaded ${files.length} file${files.length !== 1 ? 's' : ''}`,
|
||||
});
|
||||
|
||||
return { success: true };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user