consul/ui/packages/consul-ui/app/services/hcp-link-modal.js

20 lines
356 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import Service from '@ember/service';
import { tracked } from '@glimmer/tracking';
export default class HcpLinkModalService extends Service {
@tracked isModalVisible = false;
show() {
this.isModalVisible = true;
}
hide() {
this.isModalVisible = false;
}
}