Show current organization in CreateUserOverlay
parent
fb68223082
commit
c7425e19f9
|
@ -16,7 +16,7 @@ class CreateUserOverlay extends Component {
|
||||||
userScheme: 'oauth2',
|
userScheme: 'oauth2',
|
||||||
userRole: null,
|
userRole: null,
|
||||||
userSuperAdmin: SUPERADMIN_OPTION_ITEMS[1],
|
userSuperAdmin: SUPERADMIN_OPTION_ITEMS[1],
|
||||||
userOrganization: null,
|
userOrganization: this.props.currentOrganization,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ class CreateUserOverlay extends Component {
|
||||||
replaceWith={
|
replaceWith={
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
value="currentOrganization"
|
value={userOrganization.name}
|
||||||
disabled={true}
|
disabled={true}
|
||||||
className="form-control input-sm disabled"
|
className="form-control input-sm disabled"
|
||||||
/>
|
/>
|
||||||
|
@ -174,6 +174,10 @@ class CreateUserOverlay extends Component {
|
||||||
const {arrayOf, func, shape, string} = PropTypes
|
const {arrayOf, func, shape, string} = PropTypes
|
||||||
|
|
||||||
CreateUserOverlay.propTypes = {
|
CreateUserOverlay.propTypes = {
|
||||||
|
currentOrganization: shape({
|
||||||
|
id: string.isRequired,
|
||||||
|
name: string.isRequired,
|
||||||
|
}),
|
||||||
onDismiss: func.isRequired,
|
onDismiss: func.isRequired,
|
||||||
onCreateUser: func.isRequired,
|
onCreateUser: func.isRequired,
|
||||||
userRoles: arrayOf(shape()).isRequired,
|
userRoles: arrayOf(shape()).isRequired,
|
||||||
|
|
|
@ -303,6 +303,7 @@ class AdminChronografPage extends Component {
|
||||||
: null}
|
: null}
|
||||||
{showCreateUserOverlay
|
{showCreateUserOverlay
|
||||||
? <CreateUserOverlay
|
? <CreateUserOverlay
|
||||||
|
currentOrganization={organization}
|
||||||
onDismiss={this.handleHideOverlays}
|
onDismiss={this.handleHideOverlays}
|
||||||
onCreateUser={this.handleCreateUser}
|
onCreateUser={this.handleCreateUser}
|
||||||
userRoles={USER_ROLES}
|
userRoles={USER_ROLES}
|
||||||
|
|
Loading…
Reference in New Issue