Skip to content

Commit

Permalink
Merge pull request #2289 from constantine2nd/develop
Browse files Browse the repository at this point in the history
feature/OBP API Portal - if API Manager Props webui_api_manager_url is Empty don't show the button
  • Loading branch information
simonredfern authored Oct 10, 2023
2 parents 4b7aa8f + 2b39e6d commit 02039f9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion obp-api/src/main/scala/code/snippet/WebUI.scala
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,12 @@ class WebUI extends MdcLoggable{

// Link to API Manager
def apiManagerLink: CssSel = {
".api-manager-link a [href]" #> wrapPropsUrlLocaleParameter("webui_api_manager_url")
if (getWebUiPropsValue("webui_api_manager_url", "").isEmpty) {
".api-manager-link a [style]" #> "display:none"
} else {
".api-manager-link a [style]" #> "display:block" &
".api-manager-link a [href]" #> wrapPropsUrlLocaleParameter("webui_api_manager_url")
}
}

// Link to OBP-CLI
Expand Down

0 comments on commit 02039f9

Please sign in to comment.