@companieshouse/ch-node-utils 1.3.23 → 1.3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/navbar.njk +1 -1
package/package.json
CHANGED
package/templates/navbar.njk
CHANGED
|
@@ -66,7 +66,7 @@ It receives:
|
|
|
66
66
|
- pageLanguage: the language code for the page (e.g. 'en', 'cy')
|
|
67
67
|
- accountUrl: base URL to account service - ACCOUNT_URL
|
|
68
68
|
#}
|
|
69
|
-
{% macro addPredefinedNavbar(userDisplayText, chsMonitorGuiUrl, lang, displayAuthorisedAgent, displayYourCompanies, displayUserManagementAdmin, pageLanguage
|
|
69
|
+
{% macro addPredefinedNavbar(userDisplayText, chsMonitorGuiUrl, lang, displayAuthorisedAgent, displayYourCompanies, displayUserManagementAdmin, pageLanguage="en", accountUrl) %}
|
|
70
70
|
{% set menuItems = [
|
|
71
71
|
{ id: "user-management-admin", href: "/identity-verification?lang=" + pageLanguage, displayText: lang.userManagementAdmin or "User management admin" } if displayUserManagementAdmin === "yes",
|
|
72
72
|
{ id: "authorised-agent", href: "/authorised-agent?lang=" + pageLanguage, displayText: lang.authorisedAgent or "Authorised agent" } if displayAuthorisedAgent === "yes",
|