fix(stack): correct documentation link for stack ENV variables [EE-6902] (#11654)
parent
cf8ec631dd
commit
d177a70c54
|
@ -268,7 +268,11 @@ withFormValidation(
|
||||||
withFormValidation(
|
withFormValidation(
|
||||||
ngModule,
|
ngModule,
|
||||||
withUIRouter(
|
withUIRouter(
|
||||||
withControlledInput(StackEnvironmentVariablesPanel, { values: 'onChange' })
|
withReactQuery(
|
||||||
|
withControlledInput(StackEnvironmentVariablesPanel, {
|
||||||
|
values: 'onChange',
|
||||||
|
})
|
||||||
|
)
|
||||||
),
|
),
|
||||||
'stackEnvironmentVariablesPanel',
|
'stackEnvironmentVariablesPanel',
|
||||||
['showHelpMessage', 'isFoldable'],
|
['showHelpMessage', 'isFoldable'],
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import { ComponentProps } from 'react';
|
import { ComponentProps } from 'react';
|
||||||
|
|
||||||
import { Alert } from '@@/Alert';
|
import { Alert } from '@@/Alert';
|
||||||
|
import { useDocsUrl } from '@@/PageHeader/ContextHelp/ContextHelp';
|
||||||
|
|
||||||
import { EnvironmentVariablesFieldset } from './EnvironmentVariablesFieldset';
|
import { EnvironmentVariablesFieldset } from './EnvironmentVariablesFieldset';
|
||||||
import { EnvironmentVariablesPanel } from './EnvironmentVariablesPanel';
|
import { EnvironmentVariablesPanel } from './EnvironmentVariablesPanel';
|
||||||
|
@ -23,7 +24,9 @@ export function StackEnvironmentVariablesPanel({
|
||||||
<div>
|
<div>
|
||||||
You may use{' '}
|
You may use{' '}
|
||||||
<a
|
<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"
|
target="_blank"
|
||||||
data-cy="stack-env-vars-help-link"
|
data-cy="stack-env-vars-help-link"
|
||||||
rel="noreferrer noopener"
|
rel="noreferrer noopener"
|
||||||
|
|
Loading…
Reference in New Issue