jusrhee %!s(int64=4) %!d(string=hai) anos
pai
achega
4e2e43498e

+ 8 - 8
dashboard/src/components/porter-form/types.ts

@@ -41,16 +41,16 @@ export interface ResourceListField extends GenericField {
   value: any[];
   value: any[];
   context?: {
   context?: {
     config?: {
     config?: {
-      group: string
-      version: string
-      resource: string
-    }
-  },
+      group: string;
+      version: string;
+      resource: string;
+    };
+  };
   settings?: {
   settings?: {
     options?: {
     options?: {
-      "resource-button": any,
-    }
-  }
+      "resource-button": any;
+    };
+  };
 }
 }
 
 
 export interface VeleroBackupField extends GenericField {
 export interface VeleroBackupField extends GenericField {

+ 2 - 3
dashboard/src/components/repo-selector/ActionConfEditor.tsx

@@ -37,8 +37,7 @@ const defaultActionConfig: ActionConfigType = {
 const ActionConfEditor: React.FC<Props> = (props) => {
 const ActionConfEditor: React.FC<Props> = (props) => {
   const { actionConfig, setBranch, setActionConfig, branch } = props;
   const { actionConfig, setBranch, setActionConfig, branch } = props;
 
 
-  // RET2:
-  if (!actionConfig.git_repo && false) {
+  if (!actionConfig.git_repo) {
     return (
     return (
       <ExpandedWrapperAlt>
       <ExpandedWrapperAlt>
         <RepoList
         <RepoList
@@ -48,7 +47,7 @@ const ActionConfEditor: React.FC<Props> = (props) => {
         />
         />
       </ExpandedWrapperAlt>
       </ExpandedWrapperAlt>
     );
     );
-  } else if (!branch && false) {
+  } else if (!branch) {
     return (
     return (
       <>
       <>
         <ExpandedWrapperAlt>
         <ExpandedWrapperAlt>

+ 8 - 8
dashboard/src/components/repo-selector/ActionDetails.tsx

@@ -174,7 +174,7 @@ const ActionDetails: React.FC<PropsType> = (props) => {
       {!dockerfilePath && (
       {!dockerfilePath && (
         <>
         <>
           <Heading>
           <Heading>
-            <ExpandHeader 
+            <ExpandHeader
               onClick={() => setShowBuildpacksConfig((prev) => !prev)}
               onClick={() => setShowBuildpacksConfig((prev) => !prev)}
               isExpanded={showBuildpacksConfig}
               isExpanded={showBuildpacksConfig}
             >
             >
@@ -274,8 +274,7 @@ export const BuildpackSelection: React.FC<{
   }, [selectedBuilder, selectedStack, selectedBuildpacks]);
   }, [selectedBuilder, selectedStack, selectedBuildpacks]);
 
 
   useEffect(() => {
   useEffect(() => {
-    // RET2:
-    /*api
+    api
       .detectBuildpack<DetectBuildpackResponse>(
       .detectBuildpack<DetectBuildpackResponse>(
         "<token>",
         "<token>",
         {
         {
@@ -289,8 +288,8 @@ export const BuildpackSelection: React.FC<{
           name: actionConfig.git_repo.split("/")[1],
           name: actionConfig.git_repo.split("/")[1],
           branch: branch,
           branch: branch,
         }
         }
-      )*/
-      getMockData()
+      )
+      // getMockData()
       .then(({ data }) => {
       .then(({ data }) => {
         const builders = data;
         const builders = data;
 
 
@@ -445,7 +444,7 @@ export const BuildpackSelection: React.FC<{
   }
   }
 
 
   if (!stackOptions?.length || !builderOptions?.length) {
   if (!stackOptions?.length || !builderOptions?.length) {
-    return <>Loading...</>;
+    return <Loading />;
   }
   }
 
 
   return (
   return (
@@ -467,7 +466,8 @@ export const BuildpackSelection: React.FC<{
           label="Select your stack"
           label="Select your stack"
         />
         />
         <Helper>
         <Helper>
-          The following buildpacks were automatically detected. You can also manually add/remove buildpacks.
+          The following buildpacks were automatically detected. You can also
+          manually add/remove buildpacks.
         </Helper>
         </Helper>
 
 
         {!!selectedBuildpacks?.length &&
         {!!selectedBuildpacks?.length &&
@@ -567,7 +567,7 @@ const ExpandHeader = styled.div<{ isExpanded: boolean }>`
   cursor: pointer;
   cursor: pointer;
   > i {
   > i {
     margin-left: 10px;
     margin-left: 10px;
-    transform: ${props => props.isExpanded ? "" : "rotate(180deg)"};
+    transform: ${(props) => (props.isExpanded ? "" : "rotate(180deg)")};
   }
   }
 `;
 `;
 
 

+ 1 - 1
dashboard/src/main/home/cluster-dashboard/env-groups/EnvGroupList.tsx

@@ -82,7 +82,7 @@ export default class EnvGroupList extends Component<PropsType, StateType> {
   }
   }
 
 
   componentDidUpdate(prevProps: PropsType) {
   componentDidUpdate(prevProps: PropsType) {
-    // Ret2: Prevents reload when opening ClusterConfigModal
+    // Prevents reload when opening ClusterConfigModal
     if (
     if (
       prevProps.currentCluster !== this.props.currentCluster ||
       prevProps.currentCluster !== this.props.currentCluster ||
       prevProps.namespace !== this.props.namespace ||
       prevProps.namespace !== this.props.namespace ||