From 8ae64523b360ce3ae977d7cc862536c155975575 Mon Sep 17 00:00:00 2001 From: Prabhat Khera <91852476+prabhat-portainer@users.noreply.github.com> Date: Tue, 23 Apr 2024 08:35:25 +1200 Subject: [PATCH] fix(stack): correct documentation link for stack ENV variables [EE-6902] (#11653) --- app/portainer/react/components/index.ts | 6 +++++- .../StackEnvironmentVariablesPanel.tsx | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/portainer/react/components/index.ts b/app/portainer/react/components/index.ts index 20f75c796..c1e674013 100644 --- a/app/portainer/react/components/index.ts +++ b/app/portainer/react/components/index.ts @@ -268,7 +268,11 @@ withFormValidation( withFormValidation( ngModule, withUIRouter( - withControlledInput(StackEnvironmentVariablesPanel, { values: 'onChange' }) + withReactQuery( + withControlledInput(StackEnvironmentVariablesPanel, { + values: 'onChange', + }) + ) ), 'stackEnvironmentVariablesPanel', ['showHelpMessage', 'isFoldable'], diff --git a/app/react/components/form-components/EnvironmentVariablesFieldset/StackEnvironmentVariablesPanel.tsx b/app/react/components/form-components/EnvironmentVariablesFieldset/StackEnvironmentVariablesPanel.tsx index ee63cfd5b..0566ef2e1 100644 --- a/app/react/components/form-components/EnvironmentVariablesFieldset/StackEnvironmentVariablesPanel.tsx +++ b/app/react/components/form-components/EnvironmentVariablesFieldset/StackEnvironmentVariablesPanel.tsx @@ -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({