Remove unnecessary handler

pull/10616/head
Andrew Watkins 2017-03-15 10:00:23 -07:00
parent 5d5331a244
commit 8f0d1b9c9b
1 changed files with 1 additions and 6 deletions

View File

@ -8,7 +8,6 @@ import DatabaseManager from 'src/admin/components/DatabaseManager'
class DatabaseManagerPage extends Component {
constructor(props) {
super(props)
this.handleEditDatabase = ::this.handleEditDatabase
this.handleKeyDownDatabase = ::this.handleKeyDownDatabase
}
@ -18,10 +17,6 @@ class DatabaseManagerPage extends Component {
actions.loadDBsAndRPsAsync(proxy)
}
handleEditDatabase(updates, database) {
this.props.actions.editDatabase(updates, database)
}
handleKeyDownDatabase(e, database) {
const {key} = e
const {actions} = this.props
@ -43,8 +38,8 @@ class DatabaseManagerPage extends Component {
addDatabase={actions.addDatabase}
databases={databases}
retentionPolicies={retentionPolicies}
onEditDatabase={this.handleEditDatabase}
onKeyDownDatabase={this.handleKeyDownDatabase}
onEditDatabase={actions.editDatabase}
onCancelDatabase={actions.removeDatabase}
onConfirmDatabase={actions.createDatabaseAsync}
/>