From 61db98e842a27b4a5a88665f73cee29abe8ab0ac Mon Sep 17 00:00:00 2001 From: Alex Windett Date: Tue, 31 Jan 2017 11:50:37 +0000 Subject: [PATCH] adding callback to add member dispatch function and allowing for member not on system to be created --- frontend/src/components/people-list/invite.js | 9 +++++++-- frontend/src/containers/org/people.js | 3 ++- frontend/src/containers/project/people.js | 3 ++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/people-list/invite.js b/frontend/src/components/people-list/invite.js index e68a5bbe..05a2ad25 100644 --- a/frontend/src/components/people-list/invite.js +++ b/frontend/src/components/people-list/invite.js @@ -46,7 +46,11 @@ const Invite = React.createClass({ parentIndex: this.props.parentIndex, }; - this.props.addMemember(data); + this.props.addMemember(data, () => { + this.setState({ + selectValue: '' + }); + }); }, render() { @@ -88,8 +92,9 @@ const Invite = React.createClass({
-