From a54ec2341c164cc22699268bc9882e7ed4d0f5df Mon Sep 17 00:00:00 2001 From: Hugo Kiyodi Oshiro Date: Tue, 27 Aug 2024 10:14:40 +0200 Subject: [PATCH] Plugins: Hide GetStartedWithDataSource when cloud plugin is not fully installed (#92402) --- .../GetStartedWithPlugin/GetStartedWithPlugin.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/app/features/plugins/admin/components/GetStartedWithPlugin/GetStartedWithPlugin.tsx b/public/app/features/plugins/admin/components/GetStartedWithPlugin/GetStartedWithPlugin.tsx index b63970f2f8c..e9b8485a6a2 100644 --- a/public/app/features/plugins/admin/components/GetStartedWithPlugin/GetStartedWithPlugin.tsx +++ b/public/app/features/plugins/admin/components/GetStartedWithPlugin/GetStartedWithPlugin.tsx @@ -1,6 +1,7 @@ import { ReactElement } from 'react'; import { PluginType } from '@grafana/data'; +import { config } from '@grafana/runtime'; import { CatalogPlugin } from '../../types'; @@ -12,7 +13,12 @@ type Props = { }; export function GetStartedWithPlugin({ plugin }: Props): ReactElement | null { - if (!plugin.isInstalled || plugin.isDisabled) { + const isInstalled = + config.featureToggles.managedPluginsInstall && config.pluginAdminExternalManageEnabled + ? plugin.isFullyInstalled + : plugin.isInstalled; + + if (!isInstalled || plugin.isDisabled) { return null; }