Merge pull request #748 from influxdata/bugfix/tr-missing-kapa

Fix missing Kapacitor on Source index page
pull/10616/head
Chris Goller 2017-01-13 14:29:14 -06:00 committed by GitHub
commit 1f0deddf49
2 changed files with 9 additions and 4 deletions

View File

@ -1,6 +1,7 @@
## v1.1.0 [unreleased]
### Upcoming Bug Fixes
1. [#748](https://github.com/influxdata/chronograf/pull/748): Fix missing kapacitors on source index page
1. [#755](https://github.com/influxdata/chronograf/pull/755): Fix kapacitor basic auth proxying
2. [#704](https://github.com/influxdata/chronograf/issues/704): Fix RPM and DEB install script and systemd unit file

View File

@ -31,12 +31,16 @@ export const ManageSources = React.createClass({
},
componentDidMount() {
const updates = [];
const kapas = {};
this.props.sources.forEach((source) => {
const kapacitors = {};
getKapacitor(source).then((kapacitor) => {
kapacitors[source.id] = kapacitor;
const prom = getKapacitor(source).then((kapacitor) => {
kapas[source.id] = kapacitor;
});
this.setState(kapacitors);
updates.push(prom);
});
Promise.all(updates).then(() => {
this.setState({kapacitors: kapas});
});
},