From 01920841d2a5cb635a922293b6180521793b8d7e Mon Sep 17 00:00:00 2001 From: Javier Adriel Date: Wed, 9 Oct 2024 16:08:48 -0600 Subject: [PATCH] Remove live logs support from UI (#3451) --- .../src/screens/Console/Support/CallHome.tsx | 26 ++----------------- .../Console/Support/CallHomeConfirmation.tsx | 13 +--------- 2 files changed, 3 insertions(+), 36 deletions(-) diff --git a/web-app/src/screens/Console/Support/CallHome.tsx b/web-app/src/screens/Console/Support/CallHome.tsx index 0f3295bc2..6965fca15 100644 --- a/web-app/src/screens/Console/Support/CallHome.tsx +++ b/web-app/src/screens/Console/Support/CallHome.tsx @@ -45,8 +45,6 @@ const CallHome = () => { const [showConfirmation, setShowConfirmation] = useState(false); const [diagEnabled, setDiagEnabled] = useState(false); const [oDiagEnabled, setODiagEnabled] = useState(false); - const [oLogsEnabled, setOLogsEnabled] = useState(false); - const [logsEnabled, setLogsEnabled] = useState(false); const [disableMode, setDisableMode] = useState(false); const clusterRegistered = registeredCluster(); @@ -59,10 +57,8 @@ const CallHome = () => { setLoading(false); setDiagEnabled(!!res.diagnosticsStatus); - setLogsEnabled(!!res.logsStatus); setODiagEnabled(!!res.diagnosticsStatus); - setOLogsEnabled(!!res.logsStatus); }) .catch((err: ErrorResponseHandler) => { setLoading(false); @@ -94,10 +90,7 @@ const CallHome = () => { let mainVariant: "regular" | "callAction" = "regular"; - if ( - clusterRegistered && - (diagEnabled !== oDiagEnabled || logsEnabled !== oLogsEnabled) - ) { + if (clusterRegistered && diagEnabled !== oDiagEnabled) { mainVariant = "callAction"; } @@ -112,7 +105,6 @@ const CallHome = () => { @@ -178,20 +170,6 @@ const CallHome = () => { "Daily Health Report enables you to proactively identify potential issues in your deployment before they escalate." } /> - ) => { - setLogsEnabled(event.target.checked); - }} - label={"Live Error Logs"} - disabled={!clusterRegistered} - description={ - "Live Error Logs will enable MinIO's support team and automatic diagnostics system to catch failures early." - } - /> { gap: "0px 10px", }} > - {(oDiagEnabled || oLogsEnabled) && ( + {oDiagEnabled && (