1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

fix(edge/templates): fix issues [EE-6328] (#10656)

This commit is contained in:
Chaim Lev-Ari 2023-11-27 09:56:15 +02:00 committed by GitHub
parent 140ac5d17c
commit 76bcdfa2b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 181 additions and 91 deletions

View file

@ -40,6 +40,12 @@ export function PrivateRegistryFieldset({
const tooltipMessage =
'This allows you to provide credentials when using a private registry that requires authentication';
useEffect(() => {
if (isActive) {
setChecked(isActive);
}
}, [isActive]);
useEffect(() => {
if (checked) {
onChange();