Skip to content

Commit

Permalink
After configuring gitops ssh key navigate to global gitops page
Browse files Browse the repository at this point in the history
  • Loading branch information
jgruica committed Jul 23, 2020
1 parent 2428882 commit 0f78066
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions kotsadm/web/src/components/apps/AppGitops.jsx
Expand Up @@ -90,8 +90,13 @@ class AppGitops extends Component {
}

try {
await this.props.testGitOpsConnection(appId, clusterId);
await this.props.refetch();
await this.props.testGitOpsConnection(appId, clusterId).then((res) => {
if (res.data.testGitOpsConnection) {
this.props.history.push("/gitops");
} else {
this.props.refetch();
}
})
} catch (err) {
console.log(err);
} finally {
Expand Down

0 comments on commit 0f78066

Please sign in to comment.