mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Plugin Catalog: Use routing for PluginDetails Tabs (#39555)
* feat(catalog): introduce id and href to PluginDetailsTabs * feat(catalog): add hrefs and ids to PluginDetails tabs. Pass queryParams to PluginDetailsBody * feat(catalog): pass queryParams to PluginsDetailsBody and add page param to PluginListCard * fix(catalog): prevent flicker of content by waiting for fetch details to finish loading * feat(catalog): add tab icons to PluginDetails page * feat(catalog): make breadcrumbs in PluginDetailsHeader aware of page queryparam * fix(catalog): fix deeplinking to PluginDetails by comparing tabs length * test(catalog): update tests with correct props and wrap in router
This commit is contained in:
@@ -70,6 +70,13 @@ export const useFetchStatus = () => {
|
||||
return { isLoading, error };
|
||||
};
|
||||
|
||||
export const useFetchDetailsStatus = () => {
|
||||
const isLoading = useSelector(selectIsRequestPending(fetchDetails.typePrefix));
|
||||
const error = useSelector(selectRequestError(fetchDetails.typePrefix));
|
||||
|
||||
return { isLoading, error };
|
||||
};
|
||||
|
||||
export const useInstallStatus = () => {
|
||||
const isInstalling = useSelector(selectIsRequestPending(install.typePrefix));
|
||||
const error = useSelector(selectRequestError(install.typePrefix));
|
||||
|
||||
Reference in New Issue
Block a user