mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03:00
Fixed members CSV uploader for non-devExperiments version
This commit is contained in:
parent
21a5b2ad38
commit
caf08b1021
@ -209,13 +209,17 @@ export default ModalComponent.extend({
|
||||
},
|
||||
|
||||
upload() {
|
||||
if (this.file && this.mapping.getKeyByValue('email')) {
|
||||
this.generateRequest();
|
||||
if (this.config.get('enableDeveloperExperiments')) {
|
||||
if (this.file && this.mapping.getKeyByValue('email')) {
|
||||
this.generateRequest();
|
||||
} else {
|
||||
this.set('uploadErrors', [{
|
||||
message: 'Import as "Email" value is missing.',
|
||||
context: 'The CSV import has to have selected import as "Email" field.'
|
||||
}]);
|
||||
}
|
||||
} else {
|
||||
this.set('uploadErrors', [{
|
||||
message: 'Import as "Email" value is missing.',
|
||||
context: 'The CSV import has to have selected import as "Email" field.'
|
||||
}]);
|
||||
this.generateRequest();
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user