diff --git a/configuration/configuration.ts b/configuration/configuration.ts index 9864906d34ffce4a6f40dfa6af2d45653ee4c8e7..c48a5d1e42230513e8e5f0d609c1625705b9cdc3 100644 --- a/configuration/configuration.ts +++ b/configuration/configuration.ts @@ -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', @@ -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}`; @@ -45,5 +49,7 @@ 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, }; }; diff --git a/package-lock.json b/package-lock.json index d62604301ac0442e0c1ba68e29f67fb7aa7752b2..a842e9fd7bb2cd627a7e85679c9508577783da82 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@emotion/css": "^11.11.2", "@emotion/react": "^11.11.1", "@open-policy-agent/opa-wasm": "^1.8.1", - "@orchestrator-ui/orchestrator-ui-components": "1.37.1", + "@orchestrator-ui/orchestrator-ui-components": "2.1.0", "@reduxjs/toolkit": "^2.0.1", "axios": "^1.7.2", "cytoscape": "^3.29.2", @@ -2474,9 +2474,9 @@ } }, "node_modules/@orchestrator-ui/orchestrator-ui-components": { - "version": "1.37.1", - "resolved": "https://registry.npmjs.org/@orchestrator-ui/orchestrator-ui-components/-/orchestrator-ui-components-1.37.1.tgz", - "integrity": "sha512-RObgbUsIn2zRBUjv21HrQzNWK5FmiyQmOQ+L2uiJkDeDhtJ9VBSJYqu+X5ZL5qNcO/QW5EAfl8I4xH+wfXTofg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@orchestrator-ui/orchestrator-ui-components/-/orchestrator-ui-components-2.1.0.tgz", + "integrity": "sha512-f+VumJfyDiRQN9On6U+9lNyYUvSp5zYkcu3MqblhuXWbpQmuaWyQqfOrM9VQ/mPcpADSErXUdNLZHAhhE03JOw==", "license": "Apache-2.0", "dependencies": { "@elastic/eui": "^95.1.0", diff --git a/package.json b/package.json index 0c1107dc2159776c2e5c0329cf186eccaa3846f1..ca18198f59c85aa5a691c632fc3cb586555528df 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "@emotion/css": "^11.11.2", "@emotion/react": "^11.11.1", "@open-policy-agent/opa-wasm": "^1.8.1", - "@orchestrator-ui/orchestrator-ui-components": "1.37.1", + "@orchestrator-ui/orchestrator-ui-components": "2.1.0", "@reduxjs/toolkit": "^2.0.1", "axios": "^1.7.2", "cytoscape": "^3.29.2",