Procházet zdrojové kódy

Merge branch 'staging' into master

abelanger5 před 5 roky
rodič
revize
cf1378e45a

+ 3 - 0
dashboard/src/main/home/cluster-dashboard/expanded-chart/status/ControllerTab.tsx

@@ -73,6 +73,9 @@ export default class ControllerTab extends Component<PropsType, StateType> {
         this.setState({ pods, raw: res.data, showTooltip });
 
         if (isFirst) {
+          let pod = res.data[0];
+          let status = this.getPodStatus(pod.status);
+          (status === "failed" && pod.status?.message) && this.props.setPodError(pod.status?.message);
           selectPod(res.data[0]);
         }
       })

+ 13 - 0
dashboard/src/main/home/launch/expanded-template/LaunchTemplate.tsx

@@ -713,3 +713,16 @@ const StyledSourceBox = styled.div`
   overflow: auto;
   margin-bottom: 25px;
 `;
+
+const StyledSourceBox = styled.div`
+  width: 100%;
+  height: 100%;
+  background: #ffffff11;
+  color: #ffffff;
+  padding: 10px 35px 25px;
+  position: relative;
+  border-radius: 5px;
+  font-size: 13px;
+  overflow: auto;
+  margin-bottom: 25px;
+`;