Skip to content

Commit

Permalink
Minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkb0009 committed Oct 18, 2016
1 parent 19854ca commit 8fc7403
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/encoded/static/components/experiments-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ var _ = require('underscore');
* of "selectedFiles" Set and "checked", for integration with other pages/UI.
*/

// TODO (ideally): Functionality to customize columns (e.g. pass in a schema instead of list of
// column names, arrange fields appropriately under them).

var ExperimentsTable = module.exports.ExperimentsTable = React.createClass({

propTypes : {
Expand Down Expand Up @@ -207,6 +204,9 @@ var getFileDetailContainer = module.exports.getFileDetailContainer = function(ex

var FileEntry = React.createClass({

// TODO (ideally): Functionality to customize columns (e.g. pass in a schema instead of list of
// column names, arrange fields appropriately under them).

getInitialState: function() {
return {
checked: true
Expand Down Expand Up @@ -274,26 +274,25 @@ var FileEntry = React.createClass({
f.push(<td><a href={file['@id'] || ''}>{file.accession || file.uuid || file['@id']}</a></td>);
}

if (!exists) {
f.push(<td></td>);
continue;
}

if (columnHeadersShortened[i] == 'File Type'){
if (!exists) {
f.push(<td></td>);
continue;
}
f.push(<td>{file.file_format}</td>);
continue;
}

if (columnHeadersShortened[i] == 'File Info'){
if (!exists) {
f.push(<td></td>);
continue;
}
if (paired) {
f.push(<td>Paired end {file.paired_end}</td>);
} else if (file.file_format === 'fastq' || file.file_format === 'fasta') {
f.push(<td>Unpaired</td>);
} else {
f.push(<td></td>);
}
continue;
}
}
return f;
Expand Down

0 comments on commit 8fc7403

Please sign in to comment.