mirror of
https://github.com/status-im/consul.git
synced 2025-02-23 10:58:25 +00:00
* feat: add api call to hcp/link endpoint * updated * updated * update approach to get the linking status * updated application template * feat: add api call to hcp/link endpoint * updated * updated * update approach to get the linking status * updated application template * update purple banner links * Hook up the linked check to the purple banner * fixed lint issue * Updated tests for new link status API calls as args instead of from service --------- Co-authored-by: Chris Hut <tophernuts@gmail.com>
24 lines
1.6 KiB
Handlebars
24 lines
1.6 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
{{#if (and this.hcpLinkStatus.shouldDisplayBanner this.notLinked)}}
|
|
<Hds::Alert @type="page" @color="highlight" @onDismiss={{this.onDismiss}} class="link-to-hcp-banner"
|
|
data-test-link-to-hcp-banner as |A|>
|
|
<A.Title data-test-link-to-hcp-banner-title>{{t "components.link-to-hcp-banner.title"}}</A.Title>
|
|
<A.Description data-test-link-to-hcp-banner-description>{{t "components.link-to-hcp-banner.description"
|
|
isEnterprise=this.env.isEnterprise}}
|
|
</A.Description>
|
|
<A.Button @text={{t "components.link-to-hcp-banner.clusterLinkButton"}} @color="secondary" {{on "click"
|
|
this.onClusterLink}}
|
|
data-test-link-to-hcp-banner-button/>
|
|
<A.Link::Standalone @color="secondary" @icon="docs-link" @iconPosition="trailing" @text={{t
|
|
"components.link-to-hcp-banner.viewDocumentation"}}
|
|
@href="https://developer.hashicorp.com/hcp/docs/consul/self-managed"
|
|
data-test-link-to-hcp-banner-view-documentation/>
|
|
<A.Link::Standalone @color="secondary" @icon="docs-link" @iconPosition="trailing"
|
|
@text={{t "components.link-to-hcp-banner.consulCentralDocumentation"}}
|
|
@href="https://developer.hashicorp.com/hcp/docs/consul/concepts/consul-central"
|
|
data-test-link-to-hcp-banner-consul-central-documentation/>
|
|
</Hds::Alert>
|
|
{{/if}} |