diff --git a/i18n/en.json b/i18n/en.json
index 1495156..635d80d 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -18,6 +18,8 @@
"importCleanFailed": "The cleaning of the imported file on the server failed.",
"importWithCurrentLocaleHeading": "Different locale detected",
"importWithCurrentLocaleDescription": "This file was exported from the \"{{ docsLocale }}\" locale. Are you sure you want to import it into the \"{{ currentLocale }}\" locale?",
+ "importDraftsOnly": "Import all documents as drafts",
+ "importDraftsOnlyTooltip": "Content types that do not have separate drafts will be imported normally.",
"importDuplicateContinue": "Continue Import",
"importDuplicateDetected": "Duplicates Detected.",
"importDuplicateMessage": "Check the items you'd like to overwrite during import.",
diff --git a/index.js b/index.js
index 915ca2d..2922eab 100644
--- a/index.js
+++ b/index.js
@@ -19,7 +19,8 @@ module.exports = {
ns: 'aposImportExport',
browser: true
},
- preventUpdateAssets: false
+ preventUpdateAssets: false,
+ importDraftsOnlyDefault: false
},
init(self) {
self.formats = {
diff --git a/lib/methods/index.js b/lib/methods/index.js
index dc9934b..1aa4e68 100644
--- a/lib/methods/index.js
+++ b/lib/methods/index.js
@@ -21,7 +21,8 @@ module.exports = self => {
name: key,
label: value.label,
allowedExtension: value.allowedExtension
- }))
+ })),
+ importDraftsOnlyDefault: self.options.importDraftsOnlyDefault
};
},
// Filter our docs that have their module with the import or export option set to false
diff --git a/ui/apos/components/AposImportModal.vue b/ui/apos/components/AposImportModal.vue
index 2b2b848..c14a457 100644
--- a/ui/apos/components/AposImportModal.vue
+++ b/ui/apos/components/AposImportModal.vue
@@ -26,6 +26,20 @@
@upload-file="uploadImportFile"
@update="updateImportFile"
/>
+
+