mirror of https://github.com/hashicorp/consul
chore: add suffix to consul version in sidenav (#19660)
parent
d3bf47fe08
commit
f69c68e777
|
@ -217,7 +217,7 @@
|
||||||
@size='100'
|
@size='100'
|
||||||
@color='disabled'
|
@color='disabled'
|
||||||
>
|
>
|
||||||
{{t "components.hashicorp-consul.side-nav.footer" version=(env 'CONSUL_VERSION')}}
|
{{t "components.hashicorp-consul.side-nav.footer" version=this.consulVersion}}
|
||||||
</Hds::Text::Display>
|
</Hds::Text::Display>
|
||||||
{{{concat '<!-- ' (env 'CONSUL_GIT_SHA') '-->'}}}
|
{{{concat '<!-- ' (env 'CONSUL_GIT_SHA') '-->'}}}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -8,4 +8,10 @@ import { inject as service } from '@ember/service';
|
||||||
|
|
||||||
export default class HashiCorpConsul extends Component {
|
export default class HashiCorpConsul extends Component {
|
||||||
@service('flashMessages') flashMessages;
|
@service('flashMessages') flashMessages;
|
||||||
|
@service('env') env;
|
||||||
|
|
||||||
|
get consulVersion() {
|
||||||
|
const suffix = !['', 'oss'].includes(this.env.var('CONSUL_BINARY_TYPE')) ? '+ent' : '';
|
||||||
|
return `${this.env.var('CONSUL_VERSION')}${suffix}`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue