Skip to content

[7.x] [EPM] Share package icon location hook (#62072)#62983

Merged
jfsiii merged 1 commit intoelastic:7.xfrom
jfsiii:backport/7.x/pr-62072
Apr 8, 2020
Merged

[7.x] [EPM] Share package icon location hook (#62072)#62983
jfsiii merged 1 commit intoelastic:7.xfrom
jfsiii:backport/7.x/pr-62072

Conversation

@jfsiii
Copy link
Contributor

@jfsiii jfsiii commented Apr 8, 2020

Backports the following commits to 7.x:

* EPM detail page now uses same icon as list page.
* Moved hook from ./components to ./hooks
* Add optional `tryApi` param to `<PackageIcon>`

Trusts given values by default but can opt-in to side-effects like calling API. Prevents trying API when we know none are present (api explicitly returns none).

This also fixes the issue in master where the API was called several times for each item in the datasources list.
@jfsiii jfsiii added the backport This PR is a backport of another PR label Apr 8, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@jfsiii jfsiii merged commit 2ae38b7 into elastic:7.x Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants