@@ -154,24 +164,24 @@ export class Welcome extends React.Component
{
onDecline={this.onSampleDataDecline}
/>
-
-
-
-
-
- {this.renderTelemetryEnabledOrDisabledText()}
-
-
+ {!!telemetry && (
+
+
+
+
+
+
+ {this.renderTelemetryEnabledOrDisabledText()}
+
+
+
+ )}
diff --git a/src/legacy/core_plugins/kibana/public/home/plugin.ts b/src/legacy/core_plugins/kibana/public/home/plugin.ts
index e530906d5698e..5cc7c9c11dd2f 100644
--- a/src/legacy/core_plugins/kibana/public/home/plugin.ts
+++ b/src/legacy/core_plugins/kibana/public/home/plugin.ts
@@ -20,6 +20,7 @@
import { CoreSetup, CoreStart, LegacyNavLink, Plugin, UiSettingsState } from 'kibana/public';
import { DataPublicPluginStart } from 'src/plugins/data/public';
+import { TelemetryPluginStart } from 'src/plugins/telemetry/public';
import { setServices } from './kibana_services';
import { KibanaLegacySetup } from '../../../../../plugins/kibana_legacy/public';
import { UsageCollectionSetup } from '../../../../../plugins/usage_collection/public';
@@ -30,14 +31,10 @@ import {
FeatureCatalogueEntry,
} from '../../../../../plugins/home/public';
-export interface LegacyAngularInjectedDependencies {
- telemetryOptInProvider: any;
- shouldShowTelemetryOptIn: boolean;
-}
-
export interface HomePluginStartDependencies {
data: DataPublicPluginStart;
home: HomePublicPluginStart;
+ telemetry?: TelemetryPluginStart;
}
export interface HomePluginSetupDependencies {
@@ -55,7 +52,6 @@ export interface HomePluginSetupDependencies {
devMode: boolean;
uiSettings: { defaults: UiSettingsState; user?: UiSettingsState | undefined };
};
- getAngularDependencies: () => Promise