Răsfoiți Sursa

updated dockerfile skip text

jusrhee 5 ani în urmă
părinte
comite
2145baa56f

+ 1 - 1
dashboard/src/components/repo-selector/ContentsList.tsx

@@ -218,7 +218,7 @@ export default class ContentsList extends Component<PropsType, StateType> {
           <ConfirmButton
             onClick={() => this.props.setFolderPath(this.state.currentDir)}
           >
-            Skip
+            No, I don't want to use a Dockerfile
           </ConfirmButton>
         </Overlay>
       );

+ 3 - 1
dashboard/src/main/home/provisioner/AWSFormSection.tsx

@@ -202,6 +202,7 @@ class AWSFormSection extends Component<PropsType, StateType> {
 
   // TODO: handle generically (with > 2 steps)
   onCreateAWS = () => {
+    this.setState({ buttonStatus: "loading" });
     let { projectName } = this.props;
     let { selectedInfras } = this.state;
 
@@ -296,9 +297,10 @@ class AWSFormSection extends Component<PropsType, StateType> {
         {this.props.children ? this.props.children : <Padding />}
         <SaveButton
           text="Submit"
-          disabled={this.checkFormDisabled()}
+          disabled={this.checkFormDisabled() || this.state.buttonStatus === "loading"}
           onClick={this.onCreateAWS}
           makeFlush={true}
+          status={this.state.buttonStatus}
           helper="Note: Provisioning can take up to 15 minutes"
         />
       </StyledAWSFormSection>

+ 3 - 1
dashboard/src/main/home/provisioner/GCPFormSection.tsx

@@ -216,6 +216,7 @@ class GCPFormSection extends Component<PropsType, StateType> {
 
   // TODO: handle generically (with > 2 steps)
   onCreateGCP = () => {
+    this.setState({ buttonStatus: "loading" });
     let { projectName } = this.props;
 
     if (!projectName) {
@@ -285,9 +286,10 @@ class GCPFormSection extends Component<PropsType, StateType> {
         {this.props.children ? this.props.children : <Padding />}
         <SaveButton
           text="Submit"
-          disabled={this.checkFormDisabled()}
+          disabled={this.checkFormDisabled() || this.state.buttonStatus === "loading"}
           onClick={this.onCreateGCP}
           makeFlush={true}
+          status={this.state.buttonStatus}
           helper="Note: Provisioning can take up to 15 minutes"
         />
       </StyledGCPFormSection>