zahmis 5 лет назад
Родитель
Сommit
061c96df54
2 измененных файлов с 5 добавлено и 1 удалено
  1. 1 0
      src/client/js/components/ArchiveCreateModal.jsx
  2. 4 1
      src/server/routes/apiv3/page.js

+ 1 - 0
src/client/js/components/ArchiveCreateModal.jsx

@@ -70,6 +70,7 @@ const ArchiveCreateModal = (props) => {
     catch (e) {
     catch (e) {
       toastError(e);
       toastError(e);
     }
     }
+    closeModalHandler();
   }
   }
 
 
   return (
   return (

+ 4 - 1
src/server/routes/apiv3/page.js

@@ -247,7 +247,7 @@ module.exports = (crowi) => {
 
 
     const numOfPages = 1; // TODO 最終的にzipファイルに取り込むページ数を入れる
     const numOfPages = 1; // TODO 最終的にzipファイルに取り込むページ数を入れる
 
 
-    await PageArchive.create({
+    const pageArchiveCreate = await PageArchive.create({
       owner,
       owner,
       fileType,
       fileType,
       rootPagePath,
       rootPagePath,
@@ -255,6 +255,9 @@ module.exports = (crowi) => {
       hasComment: isCommentDownload,
       hasComment: isCommentDownload,
       hasAttachment: isAttachmentFileDownload,
       hasAttachment: isAttachmentFileDownload,
     });
     });
+
+    return res.apiv3({ pageArchiveCreate });
+
   });
   });
 
 
   router.get('/count-children-pages', accessTokenParser, loginRequired, async(req, res) => {
   router.get('/count-children-pages', accessTokenParser, loginRequired, async(req, res) => {