couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject fauxton commit: updated refs/heads/master to e831386
Date Tue, 08 Nov 2016 14:17:06 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master 7754a3dfb -> e83138696


Passing docURL as prop to allow for custom Cloudant value


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/e8313869
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/e8313869
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/e8313869

Branch: refs/heads/master
Commit: e83138696a35068585d15e53dcf2b970bf82fc41
Parents: 7754a3d
Author: Ryan Millay <ryan.p.millay@gmail.com>
Authored: Tue Oct 25 10:12:12 2016 -0400
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Tue Nov 8 16:16:37 2016 +0200

----------------------------------------------------------------------
 app/addons/documents/queryoptions/queryoptions.react.jsx | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/e8313869/app/addons/documents/queryoptions/queryoptions.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/queryoptions/queryoptions.react.jsx b/app/addons/documents/queryoptions/queryoptions.react.jsx
index 420d233..3c608dc 100644
--- a/app/addons/documents/queryoptions/queryoptions.react.jsx
+++ b/app/addons/documents/queryoptions/queryoptions.react.jsx
@@ -30,13 +30,7 @@ var MainFieldsView = React.createClass({
     reduce: React.PropTypes.bool.isRequired,
     toggleReduce: React.PropTypes.func,
     updateGroupLevel: React.PropTypes.func,
-    docURL: React.PropTypes.string
-  },
-
-  getDefaultProps: function () {
-    return {
-      docURL: FauxtonAPI.constants.DOC_URLS.GENERAL
-    };
+    docURL: React.PropTypes.string.isRequired
   },
 
   toggleIncludeDocs: function (e) {
@@ -411,7 +405,8 @@ var QueryTray = React.createClass({
             reduce={this.props.reduce}
             toggleReduce={Actions.toggleReduce}
             groupLevel={this.props.groupLevel}
-            updateGroupLevel={Actions.updateGroupLevel} />
+            updateGroupLevel={Actions.updateGroupLevel}
+            docURL={FauxtonAPI.constants.DOC_URLS.GENERAL} />
           <KeySearchFields
             key={1}
             showByKeys={this.props.showByKeys}


Mime
View raw message