mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-25 12:41:10 +01:00
* license: update headers to IBM Corp. * `make proto` * update offset because source file changed Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
22 lines
553 B
JavaScript
22 lines
553 B
JavaScript
/**
|
|
* Copyright IBM Corp. 2016, 2025
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import Component from '@glimmer/component';
|
|
import { service } from '@ember/service';
|
|
import { inject as controller } from '@ember/controller';
|
|
|
|
import { TOGGLE_WEB_REPL } from 'vault/utils/analytic-events';
|
|
|
|
export default class SidebarNavComponent extends Component {
|
|
@service analytics;
|
|
@service currentCluster;
|
|
@service console;
|
|
@controller('vault.cluster') clusterController;
|
|
|
|
trackReplToggle = () => {
|
|
this.analytics.trackEvent(TOGGLE_WEB_REPL);
|
|
};
|
|
}
|