Skip to content

Commit

Permalink
Only show peers in nav when feature is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
LevelbossMike committed Jun 22, 2022
1 parent 64d54e1 commit fa5b701
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ui/packages/consul-ui/app/components/hashicorp-consul/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,14 @@
@partition={{@partition}}
@nspace={{@nspace}}
/>
<li role="separator">
Organization
</li>
<li data-test-main-nav-peers class={{if (is-href 'dc.peers' @dc.Name) 'is-active' }}>
<a href={{href-to 'dc.peers' @dc.Name params=(hash peer=undefined)}}>Peers</a>
</li>
{{#if (feature-flag "peering")}}
<li role="separator">
Organization
</li>
<li data-test-main-nav-peers class={{if (is-href 'dc.peers' @dc.Name) 'is-active' }}>
<a href={{href-to 'dc.peers' @dc.Name params=(hash peer=undefined)}}>Peers</a>
</li>
{{/if}}
</ul>
</:main-nav>

Expand Down

0 comments on commit fa5b701

Please sign in to comment.