garrensmith commented on a change in pull request #950: Simplify Mango/Query 
panel layout
URL: https://github.com/apache/couchdb-fauxton/pull/950#discussion_r132194813
 
 

 ##########
 File path: app/addons/documents/components/results-toolbar.js
 ##########
 @@ -52,15 +52,22 @@ export class ResultsToolBar extends React.Component {
       bulkHeader = <BulkDocumentHeaderController {...this.props} />;
     }
 
-    return (
-      <div className="document-result-screen__toolbar">
-        {bulkAction}
-        {bulkHeader}
+    let createDocumentLink = null;
+    if (database) {
+      createDocumentLink = (
         <div className="document-result-screen__toolbar-flex-container">
-          <a href={`#/database/${dbName}/new`} className="btn save 
document-result-screen__toolbar-create-btn btn-primary">
+          <a href={`#/database/${database.id}/new`} className="btn save 
document-result-screen__toolbar-create-btn btn-primary">
 
 Review comment:
   The database id might need to be encoded
 
----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to