Przeglądaj źródła

Disable previous logs on FE

jnfrati 4 lat temu
rodzic
commit
0ebafc6dc9

+ 20 - 20
dashboard/src/main/home/cluster-dashboard/expanded-chart/status/Logs.tsx

@@ -103,26 +103,26 @@ export default class Logs extends Component<PropsType, StateType> {
       );
     }
 
-    if (
-      this.getPodStatus(selectedPod.status) === "failed" &&
-      this.state.logs.length === 0
-    ) {
-      return (
-        <Message>
-          No logs to display from this pod.
-          <Highlight
-            onClick={() => {
-              this.setState({ getPreviousLogs: true }, () => {
-                this.refreshLogs();
-              });
-            }}
-          >
-            <i className="material-icons">autorenew</i>
-            Get logs from crashed pod
-          </Highlight>
-        </Message>
-      );
-    }
+    // if (
+    //   this.getPodStatus(selectedPod.status) === "failed" &&
+    //   this.state.logs.length === 0
+    // ) {
+    //   return (
+    //     <Message>
+    //       No logs to display from this pod.
+    //       <Highlight
+    //         onClick={() => {
+    //           this.setState({ getPreviousLogs: true }, () => {
+    //             this.refreshLogs();
+    //           });
+    //         }}
+    //       >
+    //         <i className="material-icons">autorenew</i>
+    //         Get logs from crashed pod
+    //       </Highlight>
+    //     </Message>
+    //   );
+    // }
 
     if (this.state.logs.length == 0) {
       return (