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:
parent
6a8ff7c076
commit
ae3e612a24
5 changed files with 28 additions and 17 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue