Some bugfixes

This commit is contained in:
Tomas Bures 2018-11-14 23:21:45 +01:00
parent a3983193d3
commit 8683f8c91e
6 changed files with 12 additions and 8 deletions

View file

@ -74,7 +74,7 @@ export class TestSendModalDialog extends Component {
data.sendConfigurationId = props.entity.send_configuration;
data.campaignId = props.entity.id;
console.log(await axios.post(getUrl('rest/template-test-send'), data));
await axios.post(getUrl('rest/template-test-send'), data);
this.clearFormStatusMessage();

View file

@ -286,7 +286,11 @@ export default class CUD extends Component {
}
}
onFileSelected() {
onFileSelected(evt, x) {
if (!this.getFormValue('name') && this.csvFile.files.length > 0) {
this.updateFormValue('name', this.csvFile.files[0].name);
}
this.scheduleFormRevalidate();
}

View file

@ -71,7 +71,7 @@ export class TestSendModalDialog extends Component {
data.subscriptionCid = this.getFormValue('testUser');
data.sendConfigurationId = this.getFormValue('sendConfiguration');
console.log(await axios.post(getUrl('rest/template-test-send'), data));
await axios.post(getUrl('rest/template-test-send'), data);
this.clearFormStatusMessage();