|
@@ -78,7 +78,7 @@ class LaunchFlow extends Component<PropsType, StateType> {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
createGHAction = (chartName: string, chartNamespace: string, env?: any) => {
|
|
createGHAction = (chartName: string, chartNamespace: string, env?: any) => {
|
|
|
- let { currentProject, currentCluster } = this.context;
|
|
|
|
|
|
|
+ let { currentProject, currentCluster, setCurrentError } = this.context;
|
|
|
let {
|
|
let {
|
|
|
actionConfig,
|
|
actionConfig,
|
|
|
branch,
|
|
branch,
|
|
@@ -123,6 +123,8 @@ class LaunchFlow extends Component<PropsType, StateType> {
|
|
|
this.setState({
|
|
this.setState({
|
|
|
saveValuesStatus: `Could not create GitHub Action: ${err}`,
|
|
saveValuesStatus: `Could not create GitHub Action: ${err}`,
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ setCurrentError(err)
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -192,7 +194,7 @@ class LaunchFlow extends Component<PropsType, StateType> {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
onSubmit = async (rawValues: any) => {
|
|
onSubmit = async (rawValues: any) => {
|
|
|
- let { currentCluster, currentProject } = this.context;
|
|
|
|
|
|
|
+ let { currentCluster, currentProject, setCurrentError } = this.context;
|
|
|
let {
|
|
let {
|
|
|
selectedNamespace,
|
|
selectedNamespace,
|
|
|
templateName,
|
|
templateName,
|
|
@@ -278,6 +280,8 @@ class LaunchFlow extends Component<PropsType, StateType> {
|
|
|
this.setState({
|
|
this.setState({
|
|
|
saveValuesStatus: `Could not create subdomain: ${err}`,
|
|
saveValuesStatus: `Could not create subdomain: ${err}`,
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ setCurrentError(err)
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -332,6 +336,7 @@ class LaunchFlow extends Component<PropsType, StateType> {
|
|
|
this.setState({
|
|
this.setState({
|
|
|
saveValuesStatus: `Could not deploy template: ${err}`,
|
|
saveValuesStatus: `Could not deploy template: ${err}`,
|
|
|
});
|
|
});
|
|
|
|
|
+ setCurrentError(err)
|
|
|
});
|
|
});
|
|
|
};
|
|
};
|
|
|
|
|
|