From 8f0d1b9c9b6cc9b31e3ae3b05d77990416fe9265 Mon Sep 17 00:00:00 2001 From: Andrew Watkins Date: Wed, 15 Mar 2017 10:00:23 -0700 Subject: [PATCH] Remove unnecessary handler --- ui/src/admin/containers/DatabaseManagerPage.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ui/src/admin/containers/DatabaseManagerPage.js b/ui/src/admin/containers/DatabaseManagerPage.js index 7d90eda75f..0335365f5a 100644 --- a/ui/src/admin/containers/DatabaseManagerPage.js +++ b/ui/src/admin/containers/DatabaseManagerPage.js @@ -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} />