Przeglądaj źródła

fix github action config type on fe

Alexander Belanger 4 lat temu
rodzic
commit
e18ee7cd2e

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

@@ -29,7 +29,7 @@ type Props = {
 const defaultActionConfig: ActionConfigType = {
   git_repo: "",
   image_repo_uri: "",
-  branch: "",
+  git_branch: "",
   git_repo_id: 0,
 };
 

+ 1 - 1
dashboard/src/main/home/cluster-dashboard/expanded-chart/SettingsSection.tsx

@@ -47,7 +47,7 @@ const SettingsSection: React.FC<PropsType> = ({
     git_repo: "",
     image_repo_uri: "",
     git_repo_id: 0,
-    branch: "",
+    git_branch: "",
   });
 
   const { currentCluster, currentProject, setCurrentError } = useContext(

+ 1 - 1
dashboard/src/main/home/integrations/IntegrationRow.tsx

@@ -94,7 +94,7 @@ export default class IntegrationRow extends Component<PropsType, StateType> {
                   {
                     git_repo: "",
                     image_repo_uri: "",
-                    branch: "",
+                    git_branch: "",
                     git_repo_id: 0,
                     dockerfile_path: "",
                   } as ActionConfigType

+ 2 - 2
dashboard/src/main/home/launch/launch-flow/LaunchFlow.tsx

@@ -34,7 +34,7 @@ type PropsType = RouteComponentProps & {
 const defaultActionConfig: ActionConfigType = {
   git_repo: "",
   image_repo_uri: "",
-  branch: "",
+  git_branch: "",
   git_repo_id: 0,
 };
 
@@ -80,7 +80,7 @@ const LaunchFlow: React.FC<PropsType> = (props) => {
 
     return {
       git_repo: actionConfig.git_repo,
-      branch: branch,
+      git_branch: branch,
       registry_id: selectedRegistry?.id,
       dockerfile_path: dockerfilePath,
       folder_path: folderPath,

+ 1 - 1
dashboard/src/main/home/launch/launch-flow/SourcePage.tsx

@@ -52,7 +52,7 @@ type StateType = {};
 const defaultActionConfig: ActionConfigType = {
   git_repo: "",
   image_repo_uri: "",
-  branch: "",
+  git_branch: "",
   git_repo_id: 0,
 };
 

+ 1 - 1
dashboard/src/shared/types.tsx

@@ -254,7 +254,7 @@ export interface InviteType {
 
 export interface ActionConfigType {
   git_repo: string;
-  branch: string;
+  git_branch: string;
   image_repo_uri: string;
   git_repo_id: number;
 }