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 10de36f0f3..ba2ed4ca87 100644 --- a/ui/packages/consul-ui/app/components/hashicorp-consul/index.hbs +++ b/ui/packages/consul-ui/app/components/hashicorp-consul/index.hbs @@ -217,7 +217,7 @@ @size='100' @color='disabled' > - {{t "components.hashicorp-consul.side-nav.footer" version=(env 'CONSUL_VERSION')}} + {{t "components.hashicorp-consul.side-nav.footer" version=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 6b5135a1be..e47ca22c62 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}`; + } }