We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 72b8ccc + 08663eb commit c5f9026Copy full SHA for c5f9026
src/scripts/components/users/Edit.js
@@ -1,6 +1,7 @@
1
'use strict';
2
3
import React from 'react';
4
+import { Navigation } from 'react-router';
5
import Formsy from 'formsy-react';
6
import FRC from 'formsy-react-components';
7
@@ -13,7 +14,7 @@ import Datepicker from 'components/inputs/Datepicker';
13
14
require('./users.css');
15
16
const UserEdit = React.createClass({
- mixins: [ Authentication ],
17
+ mixins: [ Authentication, Navigation ],
18
19
getInitialState() {
20
return {
@@ -46,6 +47,7 @@ const UserEdit = React.createClass({
46
47
} else {
48
UserActions.create(data, this.onSave);
49
}
50
+ this.transitionTo('users');
51
},
52
53
onSave(err, data) {
0 commit comments