فهرست منبع

Merge branch '0.7.0-source-visibility' of https://github.com/porter-dev/porter into 0.7.0-source-visibility

jusrhee 4 سال پیش
والد
کامیت
8c1c370f19
1فایلهای تغییر یافته به همراه11 افزوده شده و 3 حذف شده
  1. 11 3
      dashboard/src/main/home/cluster-dashboard/expanded-chart/ExpandedChart.tsx

+ 11 - 3
dashboard/src/main/home/cluster-dashboard/expanded-chart/ExpandedChart.tsx

@@ -676,12 +676,20 @@ const ExpandedChart: React.FC<Props> = (props) => {
     if (!isWebOrWorkerDeployment) {
       return null;
     }
+
+    const repository =
+      githubRepository ||
+      currentChart?.image_repo_uri ||
+      currentChart?.config?.image?.repository;
+
+    if (repository?.includes("hello-porter")) {
+      return null;
+    }
+
     return (
       <DeploymentImageContainer>
         <DeploymentTypeIcon src={icon} />
-        {githubRepository ||
-          currentChart?.image_repo_uri ||
-          currentChart?.config?.image?.repository}
+        {repository}
       </DeploymentImageContainer>
     );
   };