Skip to content

Commit

Permalink
Add show upgrade flag to url (elastic#114243)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabarasaba committed Oct 26, 2021
1 parent dae94b1 commit c47fa60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('Overview - Upgrade Step', () => {
expect(exists('upgradeSetupCloudLink')).toBe(true);

expect(find('upgradeSetupCloudLink').props().href).toBe(
'https://cloud.elastic.co./deployments/bfdad4ef99a24212a06d387593686d63'
'https://cloud.elastic.co./deployments/bfdad4ef99a24212a06d387593686d63?show_upgrade=true'
);
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,12 @@ const UpgradeStep = ({ docLinks }: { docLinks: DocLinksStart }) => {
let callToAction;

if (isCloudEnabled) {
const upgradeOnCloudUrl = cloud!.deploymentUrl + '?show_upgrade=true';
callToAction = (
<EuiFlexGroup alignItems="center" gutterSize="s">
<EuiFlexItem grow={false}>
<EuiButton
href={cloud!.deploymentUrl}
href={upgradeOnCloudUrl}
target="_blank"
data-test-subj="upgradeSetupCloudLink"
iconSide="right"
Expand Down

0 comments on commit c47fa60

Please sign in to comment.