mirror of https://github.com/hashicorp/consul
27 lines
584 B
JavaScript
27 lines
584 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import Component from '@glimmer/component';
|
|
import { action } from '@ember/object';
|
|
import { inject as service } from '@ember/service';
|
|
|
|
export default class LinkToHcpBannerComponent extends Component {
|
|
@service('hcp-link-status') hcpLinkStatus;
|
|
@service('env') env;
|
|
|
|
get notLinked() {
|
|
return this.args.linkData?.isLinked === false;
|
|
}
|
|
|
|
@action
|
|
onDismiss() {
|
|
this.hcpLinkStatus.dismissHcpLinkBanner();
|
|
}
|
|
@action
|
|
onClusterLink() {
|
|
// TODO: CC-7147: Open simplified modal
|
|
}
|
|
}
|