Segment selection invalidated when one changes another list in campaign edit.
This commit is contained in:
Tomas Bures 2019-06-15 11:12:26 +02:00
parent 4736afd5ab
commit f8e9d67568
4 changed files with 19 additions and 8 deletions

View file

@ -198,7 +198,7 @@ These are the steps to start Mailtrain via docker-compose:
4. Authenticate as `admin`:`test`
The instructions above use an automatically built Docker image on DockerHub (https://hub.docker.com/r/mailtrain/mailtrain). If you want to build the Docker image yourself (e.g. when doing development), use the `docker-compose-local-build.yml` located in the project's root directory.
The instructions above use an automatically built Docker image on DockerHub (https://hub.docker.com/r/mailtrain/mailtrain). If you want to build the Docker image yourself (e.g. when doing development), use the `docker-compose-local.yml` located in the project's root directory.
## License

View file

@ -1,3 +1,5 @@
Note that some of these may be already obsolete...
### Front page
- Some dashboard

View file

@ -95,9 +95,7 @@ export default class CUD extends Component {
onChange: {
send_configuration: ::this.onSendConfigurationChanged
},
onChangeBeforeValidation: {
data_sourceCustom_type: ::this.onCustomTemplateTypeChanged
}
onChangeBeforeValidation: ::this.onFormChangeBeforeValidation
});
}
@ -113,9 +111,18 @@ export default class CUD extends Component {
return id;
}
onCustomTemplateTypeChanged(mutStateData, key, oldType, type) {
if (type) {
this.templateTypes[type].afterTypeChange(mutStateData);
onFormChangeBeforeValidation(mutStateData, key, oldValue, newValue) {
let match;
if (key === undefined || key === 'data_sourceCustom_type') {
if (newValue) {
this.templateTypes[newValue].afterTypeChange(mutStateData);
}
}
if (key === undefined || (match = key.match(/^(lists_[0-9]+_)list$/))) {
const prefix = match[1];
mutStateData.setIn([prefix + 'segment', 'value'], null);
}
}

View file

@ -95,7 +95,9 @@ queue:
processes: 5
EOT
cat >> server/services/workers/reports/config/production.yaml <<EOT
cat > server/services/workers/reports/config/production.yaml <<EOT
mysql:
host: $mySqlHost
log:
level: warn
EOT