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:
parent
e828615467
commit
39bdfa4512
7 changed files with 22 additions and 7 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue