-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: 1.15.x back to hcp link conditions (#19444)
Only show back to hcp link if CONSUL_HCP_URL is present
- Loading branch information
Tyler Wendlandt
authored
Nov 3, 2023
1 parent
64b6897
commit d477441
Showing
3 changed files
with
43 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:bug | ||
ui: only show back-to-hcp link when url is present | ||
``` |
18 changes: 10 additions & 8 deletions
18
ui/packages/consul-hcp/app/components/consul/hcp/home/index.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<div | ||
class="consul-hcp-home" | ||
...attributes | ||
> | ||
<a href={{env 'CONSUL_HCP_URL'}} data-native-href="true"> | ||
Back to HCP | ||
</a> | ||
</div> | ||
{{#if (env 'CONSUL_HCP_URL')}} | ||
<div | ||
class="consul-hcp-home" | ||
...attributes | ||
> | ||
<a href={{env 'CONSUL_HCP_URL'}} data-native-href="true"> | ||
Back to HCP | ||
</a> | ||
</div> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters