Github user benkeen commented on a diff in the pull request:
https://github.com/apache/couchdb-fauxton/pull/475#discussion_r38333207
--- 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 --
In this case, absolutely. We can get a lot of utility out a generic
confirmation modal like this. Tying it to a specific store would prevent being
used elsewhere.
---
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.
---