sunguroku 2 лет назад
Родитель
Сommit
d9c0638c46

+ 3 - 3
dashboard/src/main/home/cluster-dashboard/preview-environments/v2/PreviewEnvs.tsx

@@ -62,9 +62,9 @@ const PreviewEnvs: React.FC = () => {
             apps.
           </Text>
           <Spacer y={1} />
-          <PorterLink to="https://docs.porter.run/other/eject">
-            <Button alt height="35px">
-              Request ejection
+          <PorterLink to="https://docs.porter.run/other/eject" target="_blank">
+            <Button alt height="35px" target="_blank">
+             Eject to AWS, Azure, or GCP.
             </Button>
           </PorterLink>
         </DashboardPlaceholder>

+ 3 - 3
dashboard/src/main/home/compliance-dashboard/ComplianceDashboard.tsx

@@ -55,9 +55,9 @@ const ComplianceDashboard: React.FC = () => {
               dashboard.
             </Text>
             <Spacer y={1} />
-            <PorterLink to="https://docs.porter.run/other/eject">
-              <Button alt height="35px">
-                Request ejection
+            <PorterLink to="https://docs.porter.run/other/eject" target="_blank">
+              <Button alt height="35px" target="_blank">
+                Eject to AWS, Azure, or GCP.
               </Button>
             </PorterLink>
           </DashboardPlaceholder>

+ 2 - 2
dashboard/src/main/home/database-dashboard/DatabaseDashboard.tsx

@@ -94,9 +94,9 @@ const DatabaseDashboard: React.FC = () => {
             datastores.
           </Text>
           <Spacer y={1} />
-          <PorterLink to="https://docs.porter.run/other/eject">
+          <PorterLink to="https://docs.porter.run/other/eject" target="_blank">
             <Button alt height="35px">
-              Request ejection
+             Eject to AWS, Azure, or GCP.
             </Button>
           </PorterLink>
         </DashboardPlaceholder>

+ 4 - 1
dashboard/src/main/home/project-settings/ProjectSettings.tsx

@@ -75,7 +75,10 @@ function ProjectSettings(props: any) {
 
     const tabOpts = [];
     tabOpts.push({ value: "manage-access", label: "Manage access" });
-    tabOpts.push({ value: "metadata", label: "Metadata" });
+
+    if (!currentProject?.sandbox_enabled) {
+      tabOpts.push({ value: "metadata", label: "Metadata" });
+    }
 
     if (props.isAuthorized("settings", "", ["get", "delete"])) {
       if (currentProject?.api_tokens_enabled) {