Fixes for #613
Segment selection invalidated when one changes another list in campaign edit.
This commit is contained in:
parent
4736afd5ab
commit
f8e9d67568
4 changed files with 19 additions and 8 deletions
|
@ -198,7 +198,7 @@ These are the steps to start Mailtrain via docker-compose:
|
||||||
|
|
||||||
4. Authenticate as `admin`:`test`
|
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
|
## License
|
||||||
|
|
2
TODO.md
2
TODO.md
|
@ -1,3 +1,5 @@
|
||||||
|
Note that some of these may be already obsolete...
|
||||||
|
|
||||||
### Front page
|
### Front page
|
||||||
- Some dashboard
|
- Some dashboard
|
||||||
|
|
||||||
|
|
|
@ -95,9 +95,7 @@ export default class CUD extends Component {
|
||||||
onChange: {
|
onChange: {
|
||||||
send_configuration: ::this.onSendConfigurationChanged
|
send_configuration: ::this.onSendConfigurationChanged
|
||||||
},
|
},
|
||||||
onChangeBeforeValidation: {
|
onChangeBeforeValidation: ::this.onFormChangeBeforeValidation
|
||||||
data_sourceCustom_type: ::this.onCustomTemplateTypeChanged
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -113,9 +111,18 @@ export default class CUD extends Component {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
onCustomTemplateTypeChanged(mutStateData, key, oldType, type) {
|
onFormChangeBeforeValidation(mutStateData, key, oldValue, newValue) {
|
||||||
if (type) {
|
let match;
|
||||||
this.templateTypes[type].afterTypeChange(mutStateData);
|
|
||||||
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,9 @@ queue:
|
||||||
processes: 5
|
processes: 5
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
cat >> server/services/workers/reports/config/production.yaml <<EOT
|
cat > server/services/workers/reports/config/production.yaml <<EOT
|
||||||
|
mysql:
|
||||||
|
host: $mySqlHost
|
||||||
log:
|
log:
|
||||||
level: warn
|
level: warn
|
||||||
EOT
|
EOT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue