Ivan - Create Ticket Form - Dispatch getUserData after successfull email sending[skip ci]
This commit is contained in:
parent
fbb6d69696
commit
ac5975cf8b
|
@ -4,6 +4,8 @@ import { browserHistory } from 'react-router';
|
|||
|
||||
import i18n from 'lib-app/i18n';
|
||||
import API from 'lib-app/api-call';
|
||||
import store from 'app/store';
|
||||
import SessionActions from 'actions/session-actions';
|
||||
|
||||
import Header from 'core-components/header';
|
||||
import Form from 'core-components/form';
|
||||
|
@ -101,6 +103,8 @@ class CreateTicketForm extends React.Component {
|
|||
message: 'success'
|
||||
});
|
||||
|
||||
store.dispatch(SessionActions.getUserData());
|
||||
|
||||
setTimeout(() => {browserHistory.push('/dashboard')}, 2000);
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ export default {
|
|||
'CREATE_TICKET': 'Create Ticket',
|
||||
'CREATE_TICKET_DESCRIPTION': 'This is a form for creating tickets. Fill the form and send us your issues/doubts/suggestions. Our support system will answer it as soon as possible.',
|
||||
'TICKET_LIST': 'Ticket List',
|
||||
'TICKET_LIST_DESCRIPTION': 'Here you can find a list of all tickets you have sent to our support team. Notice that the highlighted ones have new unread messages.',
|
||||
'TICKET_LIST_DESCRIPTION': 'Here you can find a list of all tickets you have sent to our support team.',
|
||||
|
||||
//ERRORS
|
||||
'EMAIL_NOT_EXIST': 'Email does not exist',
|
||||
|
|
Loading…
Reference in New Issue