garrensmith commented on a change in pull request #1168: Set number of 
databases per page to display
URL: https://github.com/apache/couchdb-fauxton/pull/1168#discussion_r245940064
 
 

 ##########
 File path: app/addons/components/components/deletedatabasemodal.js
 ##########
 @@ -64,7 +65,7 @@ export class DeleteDatabaseModal extends React.Component {
   onDeleteClick = (e) => {
     e.preventDefault();
 
-    Actions.deleteDatabase(this.getDatabaseName());
+    Actions.deleteDatabase(this.getDatabaseName(), this.props.onSuccess);
 
 Review comment:
   I'm kind of torn between rather just returning a promise from the 
`Actions.deleteDatabase` and then calling `this.props.onSuccess`. What do you 
think?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to