diff --git a/config/webpack.base.config.js b/config/webpack.base.config.js index 9e592eb0f9..49d3864f4b 100644 --- a/config/webpack.base.config.js +++ b/config/webpack.base.config.js @@ -27,6 +27,12 @@ const defaultConfigs = [ { name: 'APPLICATION_NAME', default: 'Galaxy NG', scope: 'global' }, { name: 'UI_EXTERNAL_LOGIN_URI', default: '/login', scope: 'global' }, { name: 'UI_COMMIT_HASH', default: gitCommit, scope: 'global' }, + { + name: 'UI_DOCS_URL', + default: + 'https://access.redhat.com/documentation/en-us/red_hat_ansible_automation_platform/2.4', + scope: 'global', + }, // Webpack scope means the variable will only be available to webpack at // build time diff --git a/src/components/execution-environment/publish-to-controller-modal.tsx b/src/components/execution-environment/publish-to-controller-modal.tsx index b5977cdd46..e1f3b2b83e 100644 --- a/src/components/execution-environment/publish-to-controller-modal.tsx +++ b/src/components/execution-environment/publish-to-controller-modal.tsx @@ -238,9 +238,7 @@ export const PublishToControllerModal = (props: IProps) => { const { image, isOpen, onClose } = props; - const docsLink = - 'https://access.redhat.com/documentation/en-us/red_hat_ansible_automation_platform/2.4'; - + const docsLink = UI_DOCS_URL; const noData = controllers?.length === 0 && !filterIsSet(controllerParams, ['host__icontains']); diff --git a/src/containers/execution-environment-list/execution_environment_list.tsx b/src/containers/execution-environment-list/execution_environment_list.tsx index a5de163fb6..927f45ba72 100644 --- a/src/containers/execution-environment-list/execution_environment_list.tsx +++ b/src/containers/execution-environment-list/execution_environment_list.tsx @@ -134,12 +134,7 @@ class ExecutionEnvironmentList extends React.Component { const pushImagesButton = (