diff --git a/app/portainer/react/components/git-form.ts b/app/portainer/react/components/git-form.ts index 1f0bf100d..bc74e3715 100644 --- a/app/portainer/react/components/git-form.ts +++ b/app/portainer/react/components/git-form.ts @@ -43,7 +43,7 @@ export const gitFormModule = angular ) .component( 'reactGitFormAutoUpdateFieldset', - r2a(AutoUpdateFieldset, [ + r2a(withUIRouter(withReactQuery(AutoUpdateFieldset)), [ 'value', 'onChange', 'environmentType', diff --git a/app/portainer/react/components/index.ts b/app/portainer/react/components/index.ts index e9b2ba556..7f1262010 100644 --- a/app/portainer/react/components/index.ts +++ b/app/portainer/react/components/index.ts @@ -36,7 +36,7 @@ import { Slider } from '@@/form-components/Slider'; import { TagButton } from '@@/TagButton'; import { BETeaserButton } from '@@/BETeaserButton'; import { CodeEditor } from '@@/CodeEditor'; -import { HelpLink } from '@@/PageHeader/HelpLink'; +import { HelpLink } from '@@/HelpLink'; import { fileUploadField } from './file-upload-field'; import { switchField } from './switch-field'; diff --git a/app/react/components/PageHeader/HelpLink/HelpLink.tsx b/app/react/components/HelpLink/HelpLink.tsx similarity index 82% rename from app/react/components/PageHeader/HelpLink/HelpLink.tsx rename to app/react/components/HelpLink/HelpLink.tsx index 1c116c56a..5ced05c95 100644 --- a/app/react/components/PageHeader/HelpLink/HelpLink.tsx +++ b/app/react/components/HelpLink/HelpLink.tsx @@ -1,4 +1,4 @@ -import { useDocsUrl } from '../ContextHelp/ContextHelp'; +import { useDocsUrl } from '../PageHeader/ContextHelp/ContextHelp'; type HelpLinkProps = { docLink?: string; diff --git a/app/react/components/PageHeader/HelpLink/index.ts b/app/react/components/HelpLink/index.ts similarity index 100% rename from app/react/components/PageHeader/HelpLink/index.ts rename to app/react/components/HelpLink/index.ts diff --git a/app/react/portainer/gitops/AutoUpdateFieldset/WebhookSettings.tsx b/app/react/portainer/gitops/AutoUpdateFieldset/WebhookSettings.tsx index baf4efa26..00bd61b07 100644 --- a/app/react/portainer/gitops/AutoUpdateFieldset/WebhookSettings.tsx +++ b/app/react/portainer/gitops/AutoUpdateFieldset/WebhookSettings.tsx @@ -1,5 +1,6 @@ import { truncateLeftRight } from '@/portainer/filters/filters'; +import { HelpLink } from '@@/HelpLink'; import { CopyButton } from '@@/buttons'; import { FormControl } from '@@/form-components/FormControl'; @@ -21,9 +22,9 @@ export function WebhookSettings({ !!docsLink && ( <> See{' '} - + Portainer documentation on webhook usage - + . )