Skip to content

Commit

Permalink
Merge pull request #12134 from hashicorp/b-ui/target-link
Browse files Browse the repository at this point in the history
ui:  external links open in new tabs
  • Loading branch information
ChaiWithJai authored Feb 25, 2022
2 parents 5683fdf + 1d90cbf commit b76e04d
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions ui/app/templates/components/global-header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,21 @@
{{/if}}
<div class="navbar-end">
{{#if this.config.APP.showStorybookLink}}
<a href="/storybook/" class="navbar-item">
<a
href="/storybook/"
target="_blank"
rel="noopener noreferrer"
class="navbar-item"
>
Storybook
</a>
{{/if}}
{{#if this.system.agent.config.UI.Consul.BaseUIURL}}
<a
data-test-header-consul-link
href={{this.system.agent.config.UI.Consul.BaseUIURL}}
target="_blank"
rel="noopener noreferrer"
class="navbar-item"
>
Consul
Expand All @@ -36,12 +43,19 @@
<a
data-test-header-vault-link
href={{this.system.agent.config.UI.Vault.BaseUIURL}}
target="_blank"
rel="noopener noreferrer"
class="navbar-item"
>
Vault
</a>
{{/if}}
<a href="https://nomadproject.io/docs" class="navbar-item">
<a
href="https://nomadproject.io/docs"
target="_blank"
rel="noopener noreferrer"
class="navbar-item"
>
Documentation
</a>
<LinkTo @route="settings.tokens" class="navbar-item">
Expand Down

0 comments on commit b76e04d

Please sign in to comment.