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:
parent
5ad83d0adb
commit
fa755ffbca
3 changed files with 32 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue