mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +02:00
feat(helm): show manifest previews/changes when installing and upgrading a helm chart [r8s-405] (#898)
This commit is contained in:
parent
a4cff13531
commit
60bc04bc33
41 changed files with 763 additions and 157 deletions
|
@ -12,6 +12,7 @@ interface Props {
|
|||
titleClassName?: string;
|
||||
className?: string;
|
||||
htmlFor?: string;
|
||||
setIsDefaultFolded?: (isDefaultFolded: boolean) => void;
|
||||
}
|
||||
|
||||
export function FormSection({
|
||||
|
@ -23,6 +24,7 @@ export function FormSection({
|
|||
titleClassName,
|
||||
className,
|
||||
htmlFor = '',
|
||||
setIsDefaultFolded,
|
||||
}: PropsWithChildren<Props>) {
|
||||
const [isExpanded, setIsExpanded] = useState(!defaultFolded);
|
||||
const id = `foldingButton${title}`;
|
||||
|
@ -39,7 +41,10 @@ export function FormSection({
|
|||
isExpanded={isExpanded}
|
||||
data-cy={id}
|
||||
id={id}
|
||||
onClick={() => setIsExpanded((isExpanded) => !isExpanded)}
|
||||
onClick={() => {
|
||||
setIsExpanded((isExpanded) => !isExpanded);
|
||||
setIsDefaultFolded?.(isExpanded);
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue