millayr commented on a change in pull request #906: Toolbar redesign for all
docs
URL: https://github.com/apache/couchdb-fauxton/pull/906#discussion_r122749134
##########
File path: app/addons/documents/index-results/index-results.components.js
##########
@@ -402,23 +356,30 @@ var ResultsScreen = React.createClass({
isChecked={this.props.allDocumentsSelected}
hasSelectedItem={this.props.hasSelectedItem}
toggleSelect={this.toggleSelectAll}
+ changeField={this.props.changeTableHeaderAttribute}
title="Select all docs that can be..." />
</div>
);
},
render: function () {
-
- var loadLines = null;
- var isTableView = this.props.isTableView;
+ let mainView = null;
+ const { toggleSelectAll } = this.props;
+ let toolbar = <ResultsToolBar toggleSelectAll={toggleSelectAll ||
this.toggleSelectAll} {...this.props} />;
if (this.props.isLoading) {
- loadLines = <LoadLines />;
+ mainView = <div className="loading-lines-wrapper"><LoadLines /></div>;
+ } else if (!this.props.hasResults) {
+ mainView = <NoResultsScreen text={this.props.textEmptyIndex}/>;
+ } else if (this.props.selectedLayout ===
Constants.LAYOUT_ORIENTATION.JSON) {
+ mainView = this.getDocumentStyleView();
+ } else {
+ mainView = this.getTableStyleView();
Review comment:
Same as my comment above ^
----------------------------------------------------------------
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