From 4532ba682c2661c061531a94f82640b834913e44 Mon Sep 17 00:00:00 2001 From: hc-github-team-consul-core Date: Thu, 15 Feb 2024 04:34:42 -0500 Subject: [PATCH] Backport of chor: change cluster name param to have datacenter.name as default value into release/1.18.x (#20652) * backport of commit 214abc386b7a4e3b738552c1e3d05a73409c2461 * backport of commit 6bbcc993a42f94a2184b3b3a427a650e4cc1e981 * backport of commit 6b84fbe6b692c6c5139a65eb18005fe0a1b08c41 --------- Co-authored-by: valeriia-ruban --- .../app/components/hcp-nav-item/index.js | 1 - .../components/link-to-hcp-banner/index.js | 1 - .../components/link-to-hcp-modal/index.hbs | 4 +-- .../app/components/link-to-hcp-modal/index.js | 18 +++++----- .../app/helpers/hcp-authentication-link.js | 15 ++------ .../consul-ui/app/services/hcp-link-modal.js | 6 +--- .../tests/acceptance/link-to-hcp-test.js | 11 ------ .../components/link-to-hcp-modal-test.js | 3 -- .../helpers/hcp-authentication-link-test.js | 36 +++++-------------- 9 files changed, 24 insertions(+), 71 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 1de939d3561f..741de542de77 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 3f96ac261f0e..22574aed52ab 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 bdabe3b2e52e..312a16b7ffc7 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 @@ -45,7 +45,7 @@ {{#if (and this.isReadOnlyAccessLevelSelected (can "read acls") (can "create tokens"))}}