diff --git a/src/renderer/components/+preferences/extensions.tsx b/src/renderer/components/+preferences/extensions.tsx index d5457138e3..0c5db46c38 100644 --- a/src/renderer/components/+preferences/extensions.tsx +++ b/src/renderer/components/+preferences/extensions.tsx @@ -24,7 +24,7 @@ import React from "react"; import { AppPreferenceRegistry } from "../../../extensions/registries"; import { ExtensionSettings } from "./preferences"; -export const Telemetry = observer(() => { +export const Extensions = observer(() => { const extensions = AppPreferenceRegistry.getInstance().getItems(); return ( diff --git a/src/renderer/components/+preferences/preferences.tsx b/src/renderer/components/+preferences/preferences.tsx index 0e1231cd2f..b8c1e127ab 100644 --- a/src/renderer/components/+preferences/preferences.tsx +++ b/src/renderer/components/+preferences/preferences.tsx @@ -47,6 +47,8 @@ import { Application } from "./application"; import { Kubernetes } from "./kubernetes"; import { LensProxy } from "./proxy"; import { Telemetry } from "./telemetry"; +import { Extensions } from "./extensions"; +import { sentryDsn } from "../../../common/vars"; @observer export class Preferences extends React.Component { @@ -58,7 +60,8 @@ export class Preferences extends React.Component { } renderNavigation() { - const extensions = AppPreferenceRegistry.getInstance().getItems().filter(e => !e.showInPreferencesTab); + const extensions = AppPreferenceRegistry.getInstance().getItems(); + const telemetryExtensions = extensions.filter(e => e.showInPreferencesTab == "telemetry"); const currentLocation = navigation.location.pathname; const isActive = (route: RouteProps) => !!matchPath(currentLocation, { path: route.path, exact: route.exact }); @@ -68,8 +71,10 @@ export class Preferences extends React.Component { - - {extensions.length > 0 && + {telemetryExtensions.length > 0 || !!sentryDsn && + + } + {extensions.filter(e => !e.showInPreferencesTab).length > 0 && } @@ -88,7 +93,7 @@ export class Preferences extends React.Component { - +