From 214abc386b7a4e3b738552c1e3d05a73409c2461 Mon Sep 17 00:00:00 2001 From: valeriia-ruban Date: Wed, 14 Feb 2024 11:47:39 -0800 Subject: [PATCH] chor: change cluster name param to have datacenter.name as default value --- .../app/components/hcp-nav-item/index.js | 1 - .../components/link-to-hcp-banner/index.js | 1 - .../components/link-to-hcp-modal/index.hbs | 2 +- .../app/helpers/hcp-authentication-link.js | 11 ++---- .../consul-ui/app/services/hcp-link-modal.js | 4 --- .../tests/acceptance/link-to-hcp-test.js | 11 ------ .../helpers/hcp-authentication-link-test.js | 36 +++++-------------- 7 files changed, 12 insertions(+), 54 deletions(-) diff --git a/ui/packages/consul-ui/app/components/hcp-nav-item/index.js b/ui/packages/consul-ui/app/components/hcp-nav-item/index.js index 1de939d356..741de542de 100644 --- a/ui/packages/consul-ui/app/components/hcp-nav-item/index.js +++ b/ui/packages/consul-ui/app/components/hcp-nav-item/index.js @@ -52,7 +52,6 @@ export default class HcpLinkItemComponent extends Component { @action onLinkToConsulCentral() { - this.hcpLinkModal.setResourceId(this.args.linkData?.resourceId); this.hcpLinkModal.show(); } } diff --git a/ui/packages/consul-ui/app/components/link-to-hcp-banner/index.js b/ui/packages/consul-ui/app/components/link-to-hcp-banner/index.js index 3f96ac261f..22574aed52 100644 --- a/ui/packages/consul-ui/app/components/link-to-hcp-banner/index.js +++ b/ui/packages/consul-ui/app/components/link-to-hcp-banner/index.js @@ -22,7 +22,6 @@ export default class LinkToHcpBannerComponent extends Component { } @action onClusterLink() { - this.hcpLinkModal.setResourceId(this.args.linkData?.resourceId); this.hcpLinkModal.show(); } } diff --git a/ui/packages/consul-ui/app/components/link-to-hcp-modal/index.hbs b/ui/packages/consul-ui/app/components/link-to-hcp-modal/index.hbs index bdabe3b2e5..eda5204a10 100644 --- a/ui/packages/consul-ui/app/components/link-to-hcp-modal/index.hbs +++ b/ui/packages/consul-ui/app/components/link-to-hcp-modal/index.hbs @@ -97,7 +97,7 @@ @icon="external-link" @iconPosition="trailing" data-test-link-to-hcp-modal-next-button - @href={{hcp-authentication-link this.hcpLinkModal.resourceId this.accessLevel}} + @href={{hcp-authentication-link @dc this.accessLevel}} />