Soham Dessai пре 3 година
родитељ
комит
fefad57b79

+ 2 - 0
dashboard/src/components/repo-selector/ActionConfBranchSelector.tsx

@@ -50,6 +50,7 @@ const ActionConfEditorStack: React.FC<Props> = (props) => {
       </ExpandedWrapperAlt>
       </ExpandedWrapperAlt>
     );
     );
   } else if (!branch) {
   } else if (!branch) {
+    props.setFolderPath("./");
     return (
     return (
       <>
       <>
         <ExpandedWrapperAlt>
         <ExpandedWrapperAlt>
@@ -74,6 +75,7 @@ const ActionConfEditorStack: React.FC<Props> = (props) => {
       <BackButton
       <BackButton
         width="145px"
         width="145px"
         onClick={() => {
         onClick={() => {
+          props.setFolderPath("");
           setBranch("");
           setBranch("");
           props.setDockerfilePath("");
           props.setDockerfilePath("");
         }}
         }}

+ 1 - 0
dashboard/src/components/repo-selector/ActionConfEditorStack.tsx

@@ -64,6 +64,7 @@ const ActionConfEditorStack: React.FC<Props> = (props) => {
           onClick={() => {
           onClick={() => {
             setActionConfig({ ...defaultActionConfig });
             setActionConfig({ ...defaultActionConfig });
             setBranch("");
             setBranch("");
+            props.setFolderPath("");
             props.setDockerfilePath("");
             props.setDockerfilePath("");
           }}
           }}
         >
         >

+ 5 - 14
dashboard/src/main/home/app-dashboard/new-app-flow/SourceSettings.tsx

@@ -73,17 +73,6 @@ class SourceSettings extends Component<PropsType, StateType> {
         {
         {
           <>
           <>
             {" "}
             {" "}
-            {/* <CloseButton
-        onClick={() => {
-          setSourceType("");
-          setDockerfilePath("");
-          setFolderPath("");
-          setProcfilePath("");
-          setProcfileProcess("");
-        }}
-      >
-        <i className="material-icons">close</i>
-      </CloseButton> */}
             <Subtitle>
             <Subtitle>
               Provide a repo folder to use as source.
               Provide a repo folder to use as source.
               {/* <Highlight
               {/* <Highlight
@@ -196,12 +185,13 @@ class SourceSettings extends Component<PropsType, StateType> {
         <Text color="helper">Specify your application root path.</Text>
         <Text color="helper">Specify your application root path.</Text>
         <Spacer y={0.5} />
         <Spacer y={0.5} />
         <Input
         <Input
+          disabled={!this.props.branch ? true : false}
           placeholder="ex: ./"
           placeholder="ex: ./"
-          value=""
+          value={this.props.folderPath}
           width="100%"
           width="100%"
-          setValue={(e) => {}}
+          setValue={this.props.setFolderPath}
         />
         />
-        <Spacer y={0.5} />
+        {/* <Spacer y={0.5} />
         <Text color="helper">
         <Text color="helper">
           Specify your porter.yaml path. <a>&nbsp;What is this?</a>
           Specify your porter.yaml path. <a>&nbsp;What is this?</a>
         </Text>
         </Text>
@@ -212,6 +202,7 @@ class SourceSettings extends Component<PropsType, StateType> {
           width="100%"
           width="100%"
           setValue={(e) => {}}
           setValue={(e) => {}}
         />
         />
+        */}
         <Spacer y={1} />
         <Spacer y={1} />
         <DetectedBuildMessage>
         <DetectedBuildMessage>
           <i className="material-icons">check</i>
           <i className="material-icons">check</i>