2024-01-23 22:29:53 +00:00
|
|
|
/**
|
|
|
|
* 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;
|
|
|
|
|
2024-01-26 17:57:18 +00:00
|
|
|
get notLinked() {
|
|
|
|
return this.args.linkData?.isLinked === false;
|
|
|
|
}
|
|
|
|
|
2024-01-23 22:29:53 +00:00
|
|
|
@action
|
|
|
|
onDismiss() {
|
|
|
|
this.hcpLinkStatus.dismissHcpLinkBanner();
|
|
|
|
}
|
|
|
|
@action
|
|
|
|
onClusterLink() {
|
|
|
|
// TODO: CC-7147: Open simplified modal
|
|
|
|
}
|
|
|
|
}
|