mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 08:23:34 +00:00
Close zip dialog immediately after import.
This commit is contained in:
1 parent
2d163e8fed
commit
15567ee4cf
2 files changed
+7
-6
No files matched your search
@@ -302,12 +302,10 @@ export function ProjectImportDialog({
|
||||
setImportProgress(100);
|
||||
}
|
||||
|
||||
// Close dialog after a short delay
|
||||
setTimeout(() => {
|
||||
setIsOpen(false);
|
||||
handleFileRemove();
|
||||
setImportProgress(0);
|
||||
}, 1000);
|
||||
// Close dialog and reset state immediately
|
||||
setIsOpen(false);
|
||||
handleFileRemove();
|
||||
setImportProgress(0);
|
||||
} catch (err) {
|
||||
setError(err instanceof Error ? err.message : 'Failed to import projects');
|
||||
setImportProgress(0);
|
||||
|
||||
@@ -141,6 +141,9 @@ export function ProjectSidebar({
|
||||
throw new Error('Bulk import not supported in sidebar');
|
||||
}
|
||||
|
||||
// Close dialog before navigation to prevent reopening
|
||||
setIsZipDialogOpen(false);
|
||||
|
||||
// Navigate to the imported project
|
||||
if (project) {
|
||||
navigate(`/project/${project.id}`);
|
||||
|
||||
Reference in new issue
Block a user