Skip to content

Commit

Permalink
feat: change InstallButton text based on installPlans
Browse files Browse the repository at this point in the history
  • Loading branch information
mbazhlekova committed Sep 20, 2021
1 parent 14d835d commit d937910
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/InstallButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ const hasComponent = (quickstart, key) =>
quickstart[key] && quickstart[key].length > 0;

const InstallButton = ({ quickstart, ...props }) => {
const hasInstallableComponent =
hasComponent(quickstart, 'dashboards') ||
hasComponent(quickstart, 'alerts');
const hasInstallableComponent = hasComponent(quickstart, 'installPlans');

// If there is nothing to install AND no documentation, don't show this button.
if (!hasInstallableComponent && !hasComponent(quickstart, 'documentation')) {
Expand Down

0 comments on commit d937910

Please sign in to comment.