Fix #388 email templates langauge selection

This commit is contained in:
Ivan Diaz 2018-11-15 10:39:11 -03:00
parent 8654433702
commit 9d67a19c35
1 changed files with 10 additions and 2 deletions

View File

@ -18,6 +18,10 @@ import SubmitButton from 'core-components/submit-button';
class AdminPanelEmailTemplates extends React.Component {
static propTypes = {
language: React.PropTypes.string,
};
state = {
headerImage: '',
loadingHeaderImage: false,
@ -28,7 +32,7 @@ class AdminPanelEmailTemplates extends React.Component {
selectedIndex: -1,
edited: false,
errors: {},
language: 'en',
language: this.props.language,
form: {
subject: '',
text1: '',
@ -284,4 +288,8 @@ class AdminPanelEmailTemplates extends React.Component {
}
}
export default AdminPanelEmailTemplates;
export default connect((store) => {
return {
language: store.config.language,
};
})(AdminPanelEmailTemplates);