Skip to content

Commit

Permalink
Merge branch 'main' into add-theme-support
Browse files Browse the repository at this point in the history
  • Loading branch information
lupusA committed Jul 12, 2023
2 parents 2114eb5 + f827689 commit c655822
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default class App extends Component {

this.state = {
runningTaskCount: 0,
isFetching: false,
repoDescription: "",
};

Expand Down Expand Up @@ -63,11 +64,15 @@ export default class App extends Component {
}

fetchTaskSummary() {
if( ! this.state.isFetching )
{
this.setState({ isFetching: true });
axios.get('/api/v1/tasks-summary').then(result => {
this.setState({ runningTaskCount: result.data["RUNNING"] || 0 });
this.setState({ isFetching: false, runningTaskCount: result.data["RUNNING"] || 0 });
}).catch(error => {
this.setState({ runningTaskCount: -1 });
this.setState({ isFetching: false, runningTaskCount: -1 });
});
}
}

componentWillUnmount() {
Expand Down
2 changes: 1 addition & 1 deletion src/PolicyEditor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ export class PolicyEditor extends Component {
<Row>
<LabelColumn name="Cache Miss" help="Log verbosity when a cache cannot be used and a file must be hashed" />
<WideValueColumn>
{LogDetailSelector(this, "policy.logging.entries.cacheHit")}
{LogDetailSelector(this, "policy.logging.entries.cacheMiss")}
</WideValueColumn>
{EffectiveValue(this, "logging.entries.cacheMiss")}
</Row>
Expand Down
1 change: 1 addition & 0 deletions src/SourcesTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export class SourcesTable extends Component {
this.state = {
sources: [],
isLoading: false,
isFetching: false,
isRefreshing: false,
error: null,

Expand Down

0 comments on commit c655822

Please sign in to comment.