remove OrganizationTableRowDefault bc its not used and update the verbiage for the empty providers table
parent
fc00b95141
commit
cc8d0c7354
|
@ -1,60 +0,0 @@
|
|||
import React, {PropTypes, Component} from 'react'
|
||||
|
||||
import SlideToggle from 'shared/components/SlideToggle'
|
||||
import Dropdown from 'shared/components/Dropdown'
|
||||
|
||||
import {USER_ROLES} from 'src/admin/constants/dummyUsers'
|
||||
|
||||
// This is a non-editable organization row, used currently for DEFAULT_ORG
|
||||
class OrganizationsTableRowDefault extends Component {
|
||||
handleChooseDefaultRole = role => {
|
||||
const {organization, onChooseDefaultRole} = this.props
|
||||
onChooseDefaultRole(organization, role.name)
|
||||
}
|
||||
|
||||
render() {
|
||||
const {organization} = this.props
|
||||
|
||||
const dropdownRolesItems = USER_ROLES.map(role => ({
|
||||
...role,
|
||||
text: role.name,
|
||||
}))
|
||||
|
||||
return (
|
||||
<div className="fancytable--row">
|
||||
<div className="fancytable--td orgs-table--id">
|
||||
{organization.id}
|
||||
</div>
|
||||
<div className="fancytable--td orgs-table--name">
|
||||
{organization.name}
|
||||
</div>
|
||||
<div className="fancytable--td orgs-table--default-role">
|
||||
<Dropdown
|
||||
items={dropdownRolesItems}
|
||||
onChoose={this.handleChooseDefaultRole}
|
||||
selected={organization.defaultRole}
|
||||
className="dropdown-stretch"
|
||||
/>
|
||||
</div>
|
||||
<button
|
||||
className="btn btn-sm btn-default btn-square orgs-table--delete"
|
||||
disabled={true}
|
||||
>
|
||||
<span className="icon trash" />
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
const {func, shape, string} = PropTypes
|
||||
|
||||
OrganizationsTableRowDefault.propTypes = {
|
||||
organization: shape({
|
||||
id: string,
|
||||
name: string.isRequired,
|
||||
}).isRequired,
|
||||
onChooseDefaultRole: func.isRequired,
|
||||
}
|
||||
|
||||
export default OrganizationsTableRowDefault
|
|
@ -107,7 +107,7 @@ class ProvidersTable extends Component {
|
|||
<div className="generic-empty-state">
|
||||
<h4 style={{margin: '50px 0'}}>
|
||||
Looks like you have no mappings<br />
|
||||
New users will not be able to sign in
|
||||
New users will not be able to sign up automatically
|
||||
</h4>
|
||||
<button
|
||||
className="btn btn-sm btn-primary"
|
||||
|
|
Loading…
Reference in New Issue