소스 검색

change copy for no preview environments (#3831)

Feroze Mohideen 2 년 전
부모
커밋
48879891d8
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      dashboard/src/main/home/cluster-dashboard/preview-environments/v2/PreviewEnvGrid.tsx

+ 5 - 1
dashboard/src/main/home/cluster-dashboard/preview-environments/v2/PreviewEnvGrid.tsx

@@ -46,11 +46,15 @@ const PreviewEnvGrid: React.FC<PreviewEnvGridProps> = ({
   }, [deploymentTargets, searchValue, sort]);
 
   if (filteredEnvs.length === 0) {
+    let copy = "No preview environments exist. To get started with preview environments, enable them in the Settings tab of an existing application."
+    if (searchValue !== "") {
+      copy = "No matching environments were found."
+    }
     return (
       <Fieldset>
         <Container row>
           <PlaceholderIcon src={notFound} />
-          <Text color="helper">No matching environments were found.</Text>
+          <Text color="helper">{copy}</Text>
         </Container>
       </Fieldset>
     );