Explorar o código

Implemented description for expanded job chart

jnfrati %!s(int64=4) %!d(string=hai) anos
pai
achega
6081966487

+ 12 - 0
dashboard/src/main/home/cluster-dashboard/expanded-chart/ExpandedJobChart.tsx

@@ -345,6 +345,9 @@ const ExpandedJobHeader: React.FC<{
         Namespace <NamespaceTag>{chart.namespace}</NamespaceTag>
       </TagWrapper>
     </TitleSection>
+    {chart?.config?.description ? (
+      <Description>{chart?.config?.description}</Description>
+    ) : null}
 
     <InfoWrapper>
       <LastDeployed>
@@ -377,6 +380,15 @@ const ExpandedJobHeader: React.FC<{
   </HeaderWrapper>
 );
 
+const Description = styled.div`
+  color: #ffffff88;
+  position: relative;
+  line-height: 16px;
+  font-size: 14px;
+  padding-left: 10px;
+  user-select: all;
+`;
+
 const CLIModalIconWrapper = styled.div`
   height: 35px;
   font-size: 13px;