Skip to content

Commit

Permalink
chore: add suffix to consul version in sidenav
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriia-ruban committed Nov 21, 2023
1 parent 407a41e commit 978f02f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,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}`;
}
}

0 comments on commit 978f02f

Please sign in to comment.