mirror of
https://github.com/status-im/consul.git
synced 2025-02-28 13:20:44 +00:00
* Adding banner on services page * Simplified version of setting/unsetting banner * Translating the text based off of enterprise or not * Add an integration test * Adding an acceptance test * Enable config dismissal as well * Adding changelog * Adding some copyrights to the other files * Revert "Enable config dismissal as well" This reverts commit e6784c4335bdff99d9183d28571aa6ab4b852cbd. We'll be doing this in CC-7347
24 lines
1.6 KiB
Handlebars
24 lines
1.6 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
{{#if this.hcpLinkStatus.shouldDisplayBanner}}
|
|
<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}} |