Github user benkeen commented on a diff in the pull request:
https://github.com/apache/couchdb-fauxton/pull/475#discussion_r38950406
--- Diff: app/addons/fauxton/components.react.jsx ---
@@ -269,12 +269,63 @@ function (app, FauxtonAPI, React, ZeroClipboard) {
});
+ // A super-simple replacement for window.confirm()
+ var ConfirmationModal = React.createClass({
+ propTypes: {
+ visible: React.PropTypes.bool.isRequired,
+ text: React.PropTypes.string.isRequired,
+ onClose: React.PropTypes.func.isRequired,
+ onSubmit: React.PropTypes.func.isRequired
--- End diff --
As per our last conversation, I think this is okay. The parent component
just fires an action in the onClose and onSubmit methods and doesn't modify
itself directly.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---