Remove unnecessary handler
parent
5d5331a244
commit
8f0d1b9c9b
|
@ -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}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue