1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

fix(edgestack): gitops auto update issue [EE-7260] (#11965)

This commit is contained in:
Oscar Zhou 2024-06-27 08:48:03 +12:00 committed by GitHub
parent e828615467
commit 39bdfa4512
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 22 additions and 7 deletions

View file

@ -5,6 +5,7 @@ import { useAnalytics } from '@/react/hooks/useAnalytics';
import { TemplateViewModel } from '@/react/portainer/templates/app-templates/view-model';
import { CustomTemplate } from '@/react/portainer/templates/custom-templates/types';
import { notifySuccess } from '@/portainer/services/notifications';
import { transformAutoUpdateViewModel } from '@/react/portainer/gitops/AutoUpdateFieldset/utils';
import {
BasePayload,
@ -89,6 +90,10 @@ export function useCreate({
...getBasePayload(values),
git: values.git,
relativePathSettings: values.relativePath,
autoUpdate: transformAutoUpdateViewModel(
values.git.AutoUpdate,
webhookId
),
},
};
default: