1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00

feat(docker/stacks): fold env vars by default [EE-5575] (#9957)

This commit is contained in:
Chaim Lev-Ari 2023-09-07 14:45:59 +01:00 committed by GitHub
parent 6a8ff7c076
commit ae3e612a24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 28 additions and 17 deletions

View file

@ -12,15 +12,21 @@ export function EnvironmentVariablesPanel({
values,
showHelpMessage,
errors,
isFoldable = false,
}: {
explanation?: string;
values: Value;
onChange(value: Value): void;
showHelpMessage?: boolean;
errors?: ArrayError<Value>;
isFoldable?: boolean;
}) {
return (
<FormSection title="Environment variables">
<FormSection
title="Environment variables"
isFoldable={isFoldable}
defaultFolded={isFoldable}
>
<div className="form-group">
{!!explanation && (
<div className="col-sm-12 environment-variables-panel--explanation">