Update ConnectionLink to reflect current default

pull/4421/head
Brandon Farmer 2018-09-11 11:08:56 -07:00
parent 9b6263e667
commit 461f71a2fe
2 changed files with 10 additions and 0 deletions

View File

@ -27,6 +27,14 @@ interface Props {
}
class InfluxTableRow extends PureComponent<Props & WithRouterProps> {
private connectionLink: React.RefObject<ConnectionLink> = React.createRef()
public componentDidUpdate() {
if (this.connectionLink.current) {
this.connectionLink.current.forceUpdate()
}
}
public render() {
const {
source,
@ -44,6 +52,7 @@ class InfluxTableRow extends PureComponent<Props & WithRouterProps> {
<td>{this.connectButton}</td>
<td>
<ConnectionLink
ref={this.connectionLink}
source={source}
currentSource={currentSource}
toggleWizard={toggleWizard}

View File

@ -53,6 +53,7 @@ class ManageSources extends PureComponent<Props, State> {
showNewKapacitor: null,
}
}
public componentDidMount() {
this.props.fetchAllServices(this.props.sources)
this.props.sources.forEach(source => {