Skip to content

Commit 0ffb010

Browse files
authored
Merge pull request #82 from constantine2nd/develop
Make "show API Manager link" in API Explorer II configurable
2 parents 9e8fbae + fd01ff4 commit 0ffb010

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "api-explorer",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"private": true,
55
"scripts": {
66
"dev": "vite & ts-node server/app.ts",

src/components/HeaderNav.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const obpApiHost = ref(import.meta.env.VITE_OBP_API_HOST)
4545
const obpApiPortalHost = ref(import.meta.env.VITE_OBP_API_PORTAL_HOST)
4646
const obpApiHybridPost = computed(() => obpApiPortalHost.value ? obpApiPortalHost.value : obpApiHost.value)
4747
const obpApiManagerHost = ref(import.meta.env.VITE_OBP_API_MANAGER_HOST)
48+
const hasObpApiManagerHost = computed(() => obpApiManagerHost.value ? true : false)
4849
const loginUsername = ref('')
4950
const logoffurl = ref('')
5051
const obpApiVersions = ref(inject(obpApiActiveVersionsKey)!)
@@ -125,7 +126,7 @@ watchEffect(() => {
125126
<RouterLink class="router-link" id="header-nav-glossary" to="/glossary">{{
126127
$t('header.glossary')
127128
}}</RouterLink>
128-
<a v-bind:href="obpApiManagerHost" class="router-link" id="header-nav-api-manager">
129+
<a v-bind:href="obpApiManagerHost" v-show="hasObpApiManagerHost" class="router-link" id="header-nav-api-manager">
129130
{{ $t('header.api_manager') }}
130131
</a>
131132
<span class="el-dropdown-link">

0 commit comments

Comments
 (0)