jnfrati 4 лет назад
Родитель
Сommit
a8a088d741
1 измененных файлов с 32 добавлено и 26 удалено
  1. 32 26
      dashboard/src/main/home/launch/launch-flow/WorkflowPage.tsx

+ 32 - 26
dashboard/src/main/home/launch/launch-flow/WorkflowPage.tsx

@@ -71,36 +71,42 @@ const WorkflowPage: React.FC<PropsType> = (props) => {
 
   return (
     <StyledWorkflowPage>
+      <BackButton width="155px" onClick={() => props.setPage("source")}>
+        <i className="material-icons">first_page</i>
+        Source Settings
+      </BackButton>
       <Heading>GitHub Actions</Heading>
       <Helper>
         To auto-deploy each time you push changes, Porter will write GitHub
-        Secrets and a GitHub Actions workflow to your repository.
+        Secrets and this GitHub Actions workflow to your repository.
       </Helper>
-      {
-        isExpanded && (
-          <>
-          {renderWorkflow()}
-          <CheckboxRow
-            toggle={() => props.setShouldCreateWorkflow((x: boolean) => !x)}
-            checked={props.shouldCreateWorkflow}
-            label="Create workflow file"
-          />
-          <Helper>
-            You may copy the YAML to an existing workflow and uncheck this box to
-            prevent Porter from creating a new workflow file.
-            <GitHubActionLink show={!props.shouldCreateWorkflow}>
-              The GitHub Action can be found at{" "}
-              <a
-                href="https://github.com/porter-dev/porter-update-action"
-                target="_blank"
-              >
-                porter-dev/porter-update-action
-              </a>
-            </GitHubActionLink>
-          </Helper>
-          </>
-        )
-      }
+      {renderWorkflow()}
+      <CheckboxRow
+        toggle={() => props.setShouldCreateWorkflow((x: boolean) => !x)}
+        checked={props.shouldCreateWorkflow}
+        label="Create workflow file"
+      />
+      <Helper>
+        You may copy the YAML to an existing workflow and uncheck this box to
+        prevent Porter from creating a new workflow file.
+        <GitHubActionLink show={!props.shouldCreateWorkflow}>
+          The GitHub Action can be found at{" "}
+          <a
+            href="https://github.com/porter-dev/porter-update-action"
+            target="_blank"
+          >
+            porter-dev/porter-update-action
+          </a>
+        </GitHubActionLink>
+      </Helper>
+      <Buffer />
+      <SaveButton
+        text="Continue"
+        makeFlush={true}
+        disabled={hasError}
+        onClick={() => props.setPage("settings")}
+        helper={getButtonHelper()}
+      />
     </StyledWorkflowPage>
   );
 };