Explorar el Código

Merge branch 'gitlab-integration' of github.com:porter-dev/porter into dev

jnfrati hace 4 años
padre
commit
02b15d5563
Se han modificado 1 ficheros con 7 adiciones y 3 borrados
  1. 7 3
      dashboard/src/components/repo-selector/RepoList.tsx

+ 7 - 3
dashboard/src/components/repo-selector/RepoList.tsx

@@ -175,7 +175,7 @@ const RepoList: React.FC<Props> = ({
           <LoadingWrapper>
           <LoadingWrapper>
             We couldn't reach gitlab to get your repos. You can
             We couldn't reach gitlab to get your repos. You can
             <A
             <A
-              to={`/api/projects/${currentProject.id}/oauth/gitlab?integration_id=${currentProvider.integration_id}`}
+              to={`${window.location.origin}/api/projects/${currentProject.id}/oauth/gitlab?integration_id=${currentProvider.integration_id}`}
             >
             >
               Connect your gitlab account to porter
               Connect your gitlab account to porter
             </A>
             </A>
@@ -186,7 +186,9 @@ const RepoList: React.FC<Props> = ({
         return (
         return (
           <LoadingWrapper>
           <LoadingWrapper>
             No connected Github repos found. You can
             No connected Github repos found. You can
-            <A to={"/api/integrations/github-app/install"}>
+            <A
+              to={`${window.location.origin}/api/integrations/github-app/install`}
+            >
               Install Porter in more repositories
               Install Porter in more repositories
             </A>
             </A>
             or select another git provider.
             or select another git provider.
@@ -278,7 +280,9 @@ const RepoList: React.FC<Props> = ({
                 <div>We couldn't find any git provider to connect with.</div>
                 <div>We couldn't find any git provider to connect with.</div>
                 <div>
                 <div>
                   You can
                   You can
-                  <A to={"/api/integrations/github-app/install"}>
+                  <A
+                    to={`${window.location.origin}/api/integrations/github-app/install`}
+                  >
                     Add Github repositories
                     Add Github repositories
                   </A>
                   </A>
                   or
                   or