diff --git a/public/app/features/plugins/admin/components/PluginDetailsRightPanel.tsx b/public/app/features/plugins/admin/components/PluginDetailsRightPanel.tsx index 747bd58b8e9..ea6530e9338 100644 --- a/public/app/features/plugins/admin/components/PluginDetailsRightPanel.tsx +++ b/public/app/features/plugins/admin/components/PluginDetailsRightPanel.tsx @@ -93,7 +93,7 @@ export function PluginDetailsRightPanel(props: Props): React.ReactElement | null )} - {pluginDependants && ( + {pluginDependants && pluginDependants.length > 0 && ( Required by: diff --git a/public/app/features/plugins/admin/helpers.ts b/public/app/features/plugins/admin/helpers.ts index f01ab5e4857..103c7d17037 100644 --- a/public/app/features/plugins/admin/helpers.ts +++ b/public/app/features/plugins/admin/helpers.ts @@ -157,6 +157,7 @@ export function mapRemoteToCatalog(plugin: RemotePlugin, error?: PluginError): C pluginDependencies: plugin.json?.dependencies?.plugins || [], dependantPlugins: dependantPlugins(id), links: plugin.json?.info.links || [], + grafanaDependency: plugin.json?.dependencies?.grafanaDependency, }, }; } @@ -212,6 +213,8 @@ export function mapLocalToCatalog(plugin: LocalPlugin, error?: PluginError): Cat pluginDependencies: plugin.dependencies?.plugins || [], dependantPlugins: dependantPlugins(id), links: plugin.info.links || [], + grafanaDependency: plugin.dependencies?.grafanaDependency, + versions: [], }, }; } @@ -280,6 +283,8 @@ export function mapToCatalogPlugin(local?: LocalPlugin, remote?: RemotePlugin, e pluginDependencies: local?.dependencies?.plugins || remote?.json?.dependencies?.plugins || [], dependantPlugins: dependantPlugins(id), links: local?.info.links || remote?.json?.info.links || [], + grafanaDependency: local?.dependencies?.grafanaDependency || remote?.json?.dependencies?.grafanaDependency || '', + versions: [], }, }; }