open-consul/ui/packages/consul-ui/app/components/topology-metrics/popover/index.js

15 lines
364 B
JavaScript

import Component from '@glimmer/component';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
export default class TopoloyMetricsButton extends Component {
// =attributes
@tracked showToggleablePopover = false;
// =actions
@action
togglePopover() {
this.showToggleablePopover = !this.showToggleablePopover;
}
}