fix(stack): fix stack env variable link [EE-6902] (#11626)

pull/11622/head
Prabhat Khera 2024-04-19 07:00:15 +12:00 committed by GitHub
parent b86b721b0f
commit aa9e73002f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,6 @@
import { ComponentProps } from 'react'; import { ComponentProps } from 'react';
import { Alert } from '@@/Alert'; import { Alert } from '@@/Alert';
import { Link } from '@@/Link';
import { EnvironmentVariablesFieldset } from './EnvironmentVariablesFieldset'; import { EnvironmentVariablesFieldset } from './EnvironmentVariablesFieldset';
import { EnvironmentVariablesPanel } from './EnvironmentVariablesPanel'; import { EnvironmentVariablesPanel } from './EnvironmentVariablesPanel';
@ -23,13 +22,14 @@ export function StackEnvironmentVariablesPanel({
explanation={ explanation={
<div> <div>
You may use{' '} You may use{' '}
<Link <a
to="https://docs.portainer.io/v/2.20/user/docker/stacks/add#environment-variables" href="https://docs.portainer.io/v/2.20/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"
> >
environment variables in your compose file environment variables in your compose file
</Link> </a>
. The environment variable values set below will be used as . The environment variable values set below will be used as
substitutions in the compose file. Note that you may also reference a substitutions in the compose file. Note that you may also reference a
stack.env file in your compose file. A stack.env file contains the stack.env file in your compose file. A stack.env file contains the