Skip to content

Commit

Permalink
Add build progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
suryagaddipati committed Sep 25, 2015
1 parent 6aad0ad commit 1ce9fdb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
8 changes: 8 additions & 0 deletions src/main/jsx/components/lib/ProgressBar.jsx
@@ -0,0 +1,8 @@
import React from "react";
require('./progress_bar.css');
export default React.createClass({
render(){
const progressBar = this.props.visible? <paper-progress indeterminate ></paper-progress> : <paper-progress value="0" />;
return <div className="progressBar">{progressBar}</div>;
}
});
@@ -1,5 +1,4 @@
paper-progress {
.progressBar > paper-progress{
display: block;
width: 100%;
}

5 changes: 2 additions & 3 deletions src/main/jsx/pages/BuildHistoryPage.jsx
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import RangeSlider from './../components/lib/RangeSlider.jsx';
import BuildFilters from './../components/job/BuildFilters.jsx';
import BuildHistoryTable from './../components/job/BuildHistoryTable.jsx';
require('./build_history_page.css');
import ProgressBar from './../components/lib/ProgressBar.jsx';
export default React.createClass({
render(){
const {query,builds,actions,dirty} = this.props.buildHistory;
Expand All @@ -21,7 +21,6 @@ export default React.createClass({
filters={this.props.buildHistory.filters}
actions= {{AddFilter,RemoveFilter,QueryChange}}
/>;
const progressBar = dirty? <paper-progress indeterminate ></paper-progress> : <span/>
const buildHistoryTable = builds?<BuildHistoryTable
grouped={query.grouped}
buildFilters={buildFilters}
Expand All @@ -30,7 +29,7 @@ export default React.createClass({
builds ={builds}/> :<span/>;

return(<span>
{progressBar}
<ProgressBar visible={dirty} />
{buildHistoryTable}
<div className="align-center" >
</div>
Expand Down

0 comments on commit 1ce9fdb

Please sign in to comment.