diff --git a/web/src/Root.tsx b/web/src/Root.tsx
index 5a79c7b3d2..ed44c727d2 100644
--- a/web/src/Root.tsx
+++ b/web/src/Root.tsx
@@ -768,8 +768,26 @@ const Root = () => {
}
>
- } />
- } />
+
+ }
+ />
+
+ }
+ />
}
diff --git a/web/src/components/troubleshoot/GenerateSupportBundle.jsx b/web/src/components/troubleshoot/GenerateSupportBundle.jsx
index 170a4e56d0..8b5756ae7d 100644
--- a/web/src/components/troubleshoot/GenerateSupportBundle.jsx
+++ b/web/src/components/troubleshoot/GenerateSupportBundle.jsx
@@ -449,16 +449,18 @@ class GenerateSupportBundle extends Component {
) : (
-
+ !this.props.isEmbeddedClusterEnabled && (
+
+ )
)}
diff --git a/web/src/components/troubleshoot/GenerateSupportBundleModal.tsx b/web/src/components/troubleshoot/GenerateSupportBundleModal.tsx
index b452dd3ba6..45d9d471e6 100644
--- a/web/src/components/troubleshoot/GenerateSupportBundleModal.tsx
+++ b/web/src/components/troubleshoot/GenerateSupportBundleModal.tsx
@@ -17,6 +17,7 @@ type Props = {
toggleModal: () => void;
selectedApp: App | null;
updateBundleSlug: (value: string) => void;
+ isEmbeddedClusterEnabled: boolean;
};
type State = {
@@ -36,8 +37,8 @@ type State = {
const GenerateSupportBundleModal = ({
isOpen,
toggleModal,
-
updateBundleSlug,
+ isEmbeddedClusterEnabled,
}: Props) => {
const [state, setState] = useReducer(
(currentState: State, newState: Partial) => ({
@@ -347,80 +348,86 @@ const GenerateSupportBundleModal = ({
) : (
-
-
- Or{" "}
-
- click here
- {" "}
- to get a command to manually generate a support bundle. This is
- useful if the admin console is inaccessible.
-
-
+ !isEmbeddedClusterEnabled && (
+
+
+ Or{" "}
+
+ click here
+ {" "}
+ to get a command to manually generate a support bundle. This is
+ useful if the admin console is inaccessible.
+
+
+ )
)}
-
- {state.uploadBundleErrMsg && (
-
- {state.uploadBundleErrMsg}
-
- )}
-
- {!hasFile && (
-
-
-
- Drag your bundle here or{" "}
-
- choose a file to upload
-
-
-
+ {state.uploadBundleErrMsg && (
+
+ {state.uploadBundleErrMsg}
+
)}
-
- {hasFile && (
-
-
-
- {state.supportBundleFile?.name}
-
-
+ {!hasFile && (
+
+
+
+ Drag your bundle here or{" "}
+
+ choose a file to upload
+
+
+
+ )}
+
+ {hasFile && (
+
+
+
+ {state.supportBundleFile?.name}
+
+
-
-
- {state.fileUploading ? "Uploading" : "Upload support bundle"}
-
-
- Select a different file
-
+
+
+ {state.fileUploading
+ ? "Uploading"
+ : "Upload support bundle"}
+
+
+ Select a different file
+
+
-
- )}
-
+ )}
+
+ )}
diff --git a/web/src/components/troubleshoot/SupportBundleList.tsx b/web/src/components/troubleshoot/SupportBundleList.tsx
index 20bff39ed8..4c0e915368 100644
--- a/web/src/components/troubleshoot/SupportBundleList.tsx
+++ b/web/src/components/troubleshoot/SupportBundleList.tsx
@@ -30,6 +30,7 @@ type Props = {
updateBundleSlug: (slug: string) => void;
updateState: (value: Object) => void;
watch: App | null;
+ isEmbeddedClusterEnabled: boolean;
};
type State = {
@@ -278,6 +279,7 @@ export const SupportBundleList = (props: Props) => {
pollForBundleAnalysisProgress={
outletContext.pollForBundleAnalysisProgress
}
+ isEmbeddedClusterEnabled={props.isEmbeddedClusterEnabled}
/>
);
}
@@ -376,6 +378,7 @@ export const SupportBundleList = (props: Props) => {
toggleModal={toggleGenerateBundleModal}
selectedApp={selectedApp}
updateBundleSlug={outletContext.updateBundleSlug}
+ isEmbeddedClusterEnabled={props.isEmbeddedClusterEnabled}
/>