Remove Batch Add & Remove users from organization functions

pull/5030/head
Alex P 2017-11-07 19:40:48 -08:00
parent 93bd4e6999
commit 5a4799e577
1 changed files with 0 additions and 25 deletions

View File

@ -181,32 +181,7 @@ class AdminChronografPage extends Component {
// TODO: make batch actions work for batch. currently only work for one user
// since batch actions have not been implemented in the API.
handleBatchChangeUsersRole = () => {}
handleBatchAddUsersToOrg = organization => {
const {notify} = this.props
const {selectedUsers} = this.state
if (selectedUsers.length > 1) {
notify(
'error',
'Batch actions for more than 1 user not currently supported'
)
} else {
this.handleAddUserToOrg(selectedUsers[0], organization)
}
}
handleBatchRemoveUsersFromOrg = organization => {
const {notify} = this.props
const {selectedUsers} = this.state
if (selectedUsers.length > 1) {
notify(
'error',
'Batch actions for more than 1 user not currently supported'
)
} else {
this.handleRemoveUserFromOrg(selectedUsers[0], organization)
}
}
handleBatchDeleteUsers = () => {
const {notify} = this.props
// const {selectedUsers} = this.state