fix(stack): correct documentation link for stack ENV variables [EE-6902] (#11653)

pull/11661/head
Prabhat Khera 7 months ago committed by GitHub
parent ccfd5e4500
commit 8ae64523b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -268,7 +268,11 @@ withFormValidation(
withFormValidation(
ngModule,
withUIRouter(
withControlledInput(StackEnvironmentVariablesPanel, { values: 'onChange' })
withReactQuery(
withControlledInput(StackEnvironmentVariablesPanel, {
values: 'onChange',
})
)
),
'stackEnvironmentVariablesPanel',
['showHelpMessage', 'isFoldable'],

@ -1,6 +1,7 @@
import { ComponentProps } from 'react';
import { Alert } from '@@/Alert';
import { useDocsUrl } from '@@/PageHeader/ContextHelp/ContextHelp';
import { EnvironmentVariablesFieldset } from './EnvironmentVariablesFieldset';
import { EnvironmentVariablesPanel } from './EnvironmentVariablesPanel';
@ -23,7 +24,9 @@ export function StackEnvironmentVariablesPanel({
<div>
You may use{' '}
<a
href="https://docs.portainer.io/v/2.20/user/docker/stacks/add#environment-variables"
href={`${useDocsUrl(
'/user/docker/stacks/add#environment-variables'
)}`}
target="_blank"
data-cy="stack-env-vars-help-link"
rel="noreferrer noopener"

Loading…
Cancel
Save