Plugins: Display custom deprecation message if available (#75942)

* feat: display the deprecation context for a plugin if it is available

* Update public/app/features/plugins/admin/components/PluginDetailsDeprecatedWarning.tsx

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>

* feat: only extend the basic message with custom context

---------

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
This commit is contained in:
Levente Balogh
2023-10-04 14:30:03 +02:00
committed by GitHub
parent 9350e8bee5
commit e7c1e5e4c9
4 changed files with 29 additions and 6 deletions

View File

@ -25,6 +25,7 @@ export async function getPluginDetails(id: string): Promise<CatalogPluginDetails
links: local?.info.links || remote?.json?.info.links || [],
readme: localReadme || remote?.readme,
versions,
statusContext: remote?.statusContext ?? '',
};
}