mirror of https://github.com/hashicorp/consul
20 lines
356 B
JavaScript
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;
|
|
}
|
|
}
|