|
|
@@ -154,31 +154,31 @@ const BuildSettingsTab: React.FC<Props> = ({ chart }) => {
|
|
|
*/
|
|
|
|
|
|
if (tmpError.response.status === 400) {
|
|
|
- // setReRunError({
|
|
|
- // title: "No previous run found",
|
|
|
- // description:
|
|
|
- // "There are no previous runs for this workflow, please trigger manually a run before changing the build settings.",
|
|
|
- // });
|
|
|
- setCurrentError(
|
|
|
- "There are no previous runs for this workflow, please trigger manually a run before changing the build settings."
|
|
|
- );
|
|
|
+ setReRunError({
|
|
|
+ title: "No previous run found",
|
|
|
+ description:
|
|
|
+ "There are no previous runs for this workflow, please trigger manually a run before changing the build settings.",
|
|
|
+ });
|
|
|
+ // setCurrentError(
|
|
|
+ // "There are no previous runs for this workflow, please trigger manually a run before changing the build settings."
|
|
|
+ // );
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (tmpError.response.status === 409) {
|
|
|
- // setReRunError({
|
|
|
- // title: "The workflow is still running",
|
|
|
- // description:
|
|
|
- // 'If you want to make more changes, please choose the option "Save" until the workflow finishes.',
|
|
|
- // });
|
|
|
-
|
|
|
- // if (typeof tmpError.response.data === "string") {
|
|
|
- // setRunningWorkflowURL(tmpError.response.data);
|
|
|
- // }
|
|
|
- setCurrentError(
|
|
|
- 'The workflow is still running. If you want to make more changes, please choose the option "Save" until the workflow finishes. You can check the current status of the workflow here ' +
|
|
|
- tmpError.response.data
|
|
|
- );
|
|
|
+ setReRunError({
|
|
|
+ title: "The workflow is still running",
|
|
|
+ description:
|
|
|
+ 'If you want to make more changes, please choose the option "Save" until the workflow finishes.',
|
|
|
+ });
|
|
|
+
|
|
|
+ if (typeof tmpError.response.data === "string") {
|
|
|
+ setRunningWorkflowURL(tmpError.response.data);
|
|
|
+ }
|
|
|
+ // setCurrentError(
|
|
|
+ // 'The workflow is still running. If you want to make more changes, please choose the option "Save" until the workflow finishes. You can check the current status of the workflow here ' +
|
|
|
+ // tmpError.response.data
|
|
|
+ // );
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -191,12 +191,12 @@ const BuildSettingsTab: React.FC<Props> = ({ chart }) => {
|
|
|
`Please check that the file ${filename} exists on your repository.`
|
|
|
);
|
|
|
}
|
|
|
- // setReRunError({
|
|
|
- // title: "The action doesn't seem to exist",
|
|
|
- // description,
|
|
|
- // });
|
|
|
+ setReRunError({
|
|
|
+ title: "The action doesn't seem to exist",
|
|
|
+ description,
|
|
|
+ });
|
|
|
|
|
|
- setCurrentError(description);
|
|
|
+ // setCurrentError(description);
|
|
|
return;
|
|
|
}
|
|
|
throw error;
|
|
|
@@ -240,7 +240,7 @@ const BuildSettingsTab: React.FC<Props> = ({ chart }) => {
|
|
|
|
|
|
return (
|
|
|
<Wrapper>
|
|
|
- {/* {reRunError !== null ? (
|
|
|
+ {reRunError !== null ? (
|
|
|
<AlertCard>
|
|
|
<AlertCardIcon className="material-icons">error</AlertCardIcon>
|
|
|
<AlertCardContent className="content">
|
|
|
@@ -267,7 +267,7 @@ const BuildSettingsTab: React.FC<Props> = ({ chart }) => {
|
|
|
<span className="material-icons">close</span>
|
|
|
</AlertCardAction>
|
|
|
</AlertCard>
|
|
|
- ) : null} */}
|
|
|
+ ) : null}
|
|
|
<StyledSettingsSection>
|
|
|
<Heading isAtTop>Build step environment variables:</Heading>
|
|
|
<KeyValueArray
|