mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
fix(edge-stacks): various custom template issues [BE-11414] (#189)
This commit is contained in:
parent
16a1825990
commit
97e7a3c5e2
24 changed files with 749 additions and 374 deletions
|
@ -1,4 +1,5 @@
|
|||
import _ from 'lodash';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
import { notifyError } from '@/portainer/services/notifications';
|
||||
import { PrivateRegistryFieldset } from '@/react/edge/edge-stacks/components/PrivateRegistryFieldset';
|
||||
|
@ -31,6 +32,11 @@ export function PrivateRegistryFieldsetWrapper({
|
|||
|
||||
const registriesQuery = useRegistries({ hideDefault: true });
|
||||
|
||||
useEffect(() => {
|
||||
matchRegistry(values);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [values.file, values.fileContent]);
|
||||
|
||||
if (!registriesQuery.data) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue