Unverified Commit 334d0a75 authored by Nicolas Giard's avatar Nicolas Giard Committed by GitHub

feat: import v1 disk mode config (#1099)

parent 0f079e2d
...@@ -318,7 +318,7 @@ export default { ...@@ -318,7 +318,7 @@ export default {
return this.importFilters.indexOf('users') >= 0 return this.importFilters.indexOf('users') >= 0
}, },
needDisk () { needDisk () {
return this.contentMode === `local` return this.contentMode === `disk`
}, },
needGit () { needGit () {
return this.contentMode === `git` return this.contentMode === `git`
...@@ -398,6 +398,17 @@ export default { ...@@ -398,6 +398,17 @@ export default {
{ key: 'gitBinaryPath', value: { value: '' } } { key: 'gitBinaryPath', value: { value: '' } }
] ]
} }
// -> Setup Disk Module
if (this.contentMode === 'disk' && nStr.key === 'disk') {
nStr.isEnabled = true
nStr.mode = 'push'
nStr.syncInterval = 'P0D'
nStr.config = [
{ key: 'path', value: { value: this.contentPath } },
{ key: 'createDailyBackups', value: { value: false } }
]
}
return nStr return nStr
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment