Remove unnecessary handler
parent
5d5331a244
commit
8f0d1b9c9b
|
@ -8,7 +8,6 @@ import DatabaseManager from 'src/admin/components/DatabaseManager'
|
||||||
class DatabaseManagerPage extends Component {
|
class DatabaseManagerPage extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props)
|
super(props)
|
||||||
this.handleEditDatabase = ::this.handleEditDatabase
|
|
||||||
this.handleKeyDownDatabase = ::this.handleKeyDownDatabase
|
this.handleKeyDownDatabase = ::this.handleKeyDownDatabase
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,10 +17,6 @@ class DatabaseManagerPage extends Component {
|
||||||
actions.loadDBsAndRPsAsync(proxy)
|
actions.loadDBsAndRPsAsync(proxy)
|
||||||
}
|
}
|
||||||
|
|
||||||
handleEditDatabase(updates, database) {
|
|
||||||
this.props.actions.editDatabase(updates, database)
|
|
||||||
}
|
|
||||||
|
|
||||||
handleKeyDownDatabase(e, database) {
|
handleKeyDownDatabase(e, database) {
|
||||||
const {key} = e
|
const {key} = e
|
||||||
const {actions} = this.props
|
const {actions} = this.props
|
||||||
|
@ -43,8 +38,8 @@ class DatabaseManagerPage extends Component {
|
||||||
addDatabase={actions.addDatabase}
|
addDatabase={actions.addDatabase}
|
||||||
databases={databases}
|
databases={databases}
|
||||||
retentionPolicies={retentionPolicies}
|
retentionPolicies={retentionPolicies}
|
||||||
onEditDatabase={this.handleEditDatabase}
|
|
||||||
onKeyDownDatabase={this.handleKeyDownDatabase}
|
onKeyDownDatabase={this.handleKeyDownDatabase}
|
||||||
|
onEditDatabase={actions.editDatabase}
|
||||||
onCancelDatabase={actions.removeDatabase}
|
onCancelDatabase={actions.removeDatabase}
|
||||||
onConfirmDatabase={actions.createDatabaseAsync}
|
onConfirmDatabase={actions.createDatabaseAsync}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue