mirror of
https://github.com/docmost/docmost.git
synced 2025-11-16 08:51:10 +10:00
keep import modal mounted
This commit is contained in:
@ -56,6 +56,7 @@ export default function PageImportModal({
|
|||||||
yOffset="10vh"
|
yOffset="10vh"
|
||||||
xOffset={0}
|
xOffset={0}
|
||||||
mah={400}
|
mah={400}
|
||||||
|
keepMounted={true}
|
||||||
>
|
>
|
||||||
<Modal.Overlay />
|
<Modal.Overlay />
|
||||||
<Modal.Content style={{ overflow: "hidden" }}>
|
<Modal.Content style={{ overflow: "hidden" }}>
|
||||||
@ -90,8 +91,6 @@ function ImportFormatSelection({ spaceId, onClose }: ImportFormatSelection) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
onClose();
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const importTask = await importZip(selectedFile, spaceId, source);
|
const importTask = await importZip(selectedFile, spaceId, source);
|
||||||
notifications.show({
|
notifications.show({
|
||||||
@ -104,6 +103,7 @@ function ImportFormatSelection({ spaceId, onClose }: ImportFormatSelection) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
setFileTaskId(importTask.id);
|
setFileTaskId(importTask.id);
|
||||||
|
onClose();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log("Failed to import page", err);
|
console.log("Failed to import page", err);
|
||||||
notifications.update({
|
notifications.update({
|
||||||
|
|||||||
Reference in New Issue
Block a user