Skip to content

Commit c5f9026

Browse files
committed
Merge pull request #27 from lisovskyvlad/master
Change button`s 'Save' behavior. After click on it, redirect to user`…
2 parents 72b8ccc + 08663eb commit c5f9026

File tree

1 file changed

+3
-1
lines changed
  • src/scripts/components/users

1 file changed

+3
-1
lines changed

src/scripts/components/users/Edit.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
import React from 'react';
4+
import { Navigation } from 'react-router';
45
import Formsy from 'formsy-react';
56
import FRC from 'formsy-react-components';
67

@@ -13,7 +14,7 @@ import Datepicker from 'components/inputs/Datepicker';
1314
require('./users.css');
1415

1516
const UserEdit = React.createClass({
16-
mixins: [ Authentication ],
17+
mixins: [ Authentication, Navigation ],
1718

1819
getInitialState() {
1920
return {
@@ -46,6 +47,7 @@ const UserEdit = React.createClass({
4647
} else {
4748
UserActions.create(data, this.onSave);
4849
}
50+
this.transitionTo('users');
4951
},
5052

5153
onSave(err, data) {

0 commit comments

Comments
 (0)