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

fix(edge/stacks): show registry field for git [EE-5742] (#9217)

This commit is contained in:
Chaim Lev-Ari 2023-07-19 18:22:29 +03:00 committed by GitHub
parent 5ad83d0adb
commit fa755ffbca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 9 deletions

View file

@ -14,24 +14,24 @@ import { FormSection } from '@@/form-components/FormSection';
interface Props {
value?: number;
registries: Registry[];
onChange: () => void;
onChange?: () => void;
formInvalid?: boolean;
errorMessage?: string;
onSelect: (value?: number) => void;
isActive?: boolean;
clearRegistries: () => void;
method?: string;
clearRegistries?: () => void;
method?: 'repository' | string;
}
export function PrivateRegistryFieldset({
value,
registries,
onChange,
onChange = () => {},
formInvalid,
errorMessage,
onSelect,
isActive,
clearRegistries,
clearRegistries = () => {},
method,
}: Props) {
const [checked, setChecked] = useState(isActive || false);