Skip to content

Commit

Permalink
Updates components lib version to 1.38.2. Adds support menu env varia…
Browse files Browse the repository at this point in the history
…bles
  • Loading branch information
Ruben van Leeuwen committed Sep 5, 2024
1 parent 38804dc commit 1e8541a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ USE_WEB_SOCKETS=false
USE_THEME_TOGGLE=false
SHOW_WORKFLOW_INFORMATION_LINK=true
WORKFLOW_INFORMATION_LINK_URL="https://workfloworchestrator.org/"
ENABLE_SUPPORT_MENU_ITEM=true
SUPPORT_MENU_ITEM_URL="https://workfloworchestrator.org/orchestrator-core/reference-docs/tldr/"

# Auth variables
OAUTH2_ACTIVE=true
Expand Down
7 changes: 7 additions & 0 deletions configuration/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export const getInitialOrchestratorConfig = (): OrchestratorConfig => {
WORKFLOW_INFORMATION_LINK_URL,
SHOW_WORKFLOW_INFORMATION_LINK,
OAUTH2_ACTIVE,
ENABLE_SUPPORT_MENU_ITEM,
SUPPORT_MENU_ITEM_URL,
} = getEnvironmentVariables([
'USE_THEME_TOGGLE',
'ENVIRONMENT_NAME',
Expand All @@ -29,6 +31,8 @@ export const getInitialOrchestratorConfig = (): OrchestratorConfig => {
'WORKFLOW_INFORMATION_LINK_URL',
'SHOW_WORKFLOW_INFORMATION_LINK',
'OAUTH2_ACTIVE',
'ENABLE_SUPPORT_MENU_ITEM',
'SUPPORT_MENU_ITEM_URL',
]);

const graphqlEndpointCore = `${ORCHESTRATOR_GRAPHQL_HOST}${ORCHESTRATOR_GRAPHQL_PATH}`;
Expand All @@ -45,5 +49,8 @@ export const getInitialOrchestratorConfig = (): OrchestratorConfig => {
workflowInformationLinkUrl: WORKFLOW_INFORMATION_LINK_URL,
showWorkflowInformationLink:
SHOW_WORKFLOW_INFORMATION_LINK?.toLowerCase() === 'true',
enableSupportMenuItem:
ENABLE_SUPPORT_MENU_ITEM?.toLowerCase() === 'true',
supportMenuItemUrl: SUPPORT_MENU_ITEM_URL,
};
};
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1e8541a

Please sign in to comment.