mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-20 06:01:10 +02:00
29 lines
692 B
JavaScript
29 lines
692 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import Component from '@glimmer/component';
|
|
import { inject as service } from '@ember/service';
|
|
|
|
/**
|
|
* @module DashboardVaultVersionTitle
|
|
* DashboardVaultVersionTitle component are use to display the vault version title and the badges
|
|
*
|
|
* @example
|
|
* ```js
|
|
* <Dashboard::VaultVersionTitle />
|
|
* ```
|
|
*/
|
|
|
|
export default class DashboardVaultVersionTitle extends Component {
|
|
@service version;
|
|
@service namespace;
|
|
|
|
get versionHeader() {
|
|
return this.version.isEnterprise
|
|
? `Vault v${this.version.version.slice(0, this.version.version.indexOf('+'))}`
|
|
: `Vault v${this.version.version}`;
|
|
}
|
|
}
|