Nicolas Giard
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
12 additions and
1 deletions
-
client/components/admin/admin-utilities-importv1.vue
|
|
@ -318,7 +318,7 @@ export default { |
|
|
|
return this.importFilters.indexOf('users') >= 0 |
|
|
|
}, |
|
|
|
needDisk () { |
|
|
|
return this.contentMode === `local` |
|
|
|
return this.contentMode === `disk` |
|
|
|
}, |
|
|
|
needGit () { |
|
|
|
return this.contentMode === `git` |
|
|
@ -398,6 +398,17 @@ export default { |
|
|
|
{ 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 |
|
|
|
}) |
|
|
|
|
|
|
|