diff --git a/ui/packages/consul-ui/app/components/hashicorp-consul/index.hbs b/ui/packages/consul-ui/app/components/hashicorp-consul/index.hbs index 485e54a55f..55f4ad0e21 100644 --- a/ui/packages/consul-ui/app/components/hashicorp-consul/index.hbs +++ b/ui/packages/consul-ui/app/components/hashicorp-consul/index.hbs @@ -149,7 +149,7 @@ - Consul v{{env 'CONSUL_VERSION'}} + Consul v{{this.consulVersion}} @@ -199,7 +199,7 @@ <:content-info>

- Consul v{{env 'CONSUL_VERSION'}} + Consul v{{this.consulVersion}}

{{{concat ''}}} diff --git a/ui/packages/consul-ui/app/components/hashicorp-consul/index.js b/ui/packages/consul-ui/app/components/hashicorp-consul/index.js index 7046cccaeb..c23d96873f 100644 --- a/ui/packages/consul-ui/app/components/hashicorp-consul/index.js +++ b/ui/packages/consul-ui/app/components/hashicorp-consul/index.js @@ -8,4 +8,10 @@ import { inject as service } from '@ember/service'; export default class HashiCorpConsul extends Component { @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}`; + } }