Valeriia Ruban 8425cd0f90
chor: change cluster name param to have datacenter.name as default value (#20644)
* chor: change cluster name param to have datacenter.name as default value
2024-02-15 01:26:34 -08:00

28 lines
613 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('hcp-link-modal') hcpLinkModal;
@service('env') env;
get notLinked() {
return this.args.linkData?.isLinked === false;
}
@action
onDismiss() {
this.hcpLinkStatus.dismissHcpLinkBanner();
}
@action
onClusterLink() {
this.hcpLinkModal.show();
}
}