Merge pull request #748 from influxdata/bugfix/tr-missing-kapa
Fix missing Kapacitor on Source index pagepull/10616/head
commit
1f0deddf49
|
@ -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
|
||||
|
||||
|
|
|
@ -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});
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue