chore: add suffix to consul version in sidenav (#19711)
This commit is contained in:
parent
0846916941
commit
dae785fe3e
|
@ -149,7 +149,7 @@
|
||||||
<disclosure.Menu as |panel|>
|
<disclosure.Menu as |panel|>
|
||||||
<panel.Menu as |menu|>
|
<panel.Menu as |menu|>
|
||||||
<menu.Separator>
|
<menu.Separator>
|
||||||
Consul v{{env 'CONSUL_VERSION'}}
|
Consul v{{this.consulVersion}}
|
||||||
</menu.Separator>
|
</menu.Separator>
|
||||||
<menu.Item class='docs-link'>
|
<menu.Item class='docs-link'>
|
||||||
<menu.Action @href={{env 'CONSUL_DOCS_URL'}} @external={{true}}>
|
<menu.Action @href={{env 'CONSUL_DOCS_URL'}} @external={{true}}>
|
||||||
|
@ -199,7 +199,7 @@
|
||||||
|
|
||||||
<:content-info>
|
<:content-info>
|
||||||
<p>
|
<p>
|
||||||
Consul v{{env 'CONSUL_VERSION'}}
|
Consul v{{this.consulVersion}}
|
||||||
</p>
|
</p>
|
||||||
{{{concat '<!-- ' (env 'CONSUL_GIT_SHA') '-->'}}}
|
{{{concat '<!-- ' (env 'CONSUL_GIT_SHA') '-->'}}}
|
||||||
</:content-info>
|
</:content-info>
|
||||||
|
|
|
@ -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