Skip to content

Commit 0b4ad74

Browse files
alexefcrenshaw-dev
authored andcommitted
fix: values should always be visible, even when they are empty (argoproj#11676) (argoproj#11681)
Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com> Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com> Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Signed-off-by: schakrad <chakradari.sindhu@gmail.com>
1 parent 3d9b083 commit 0b4ad74

File tree

1 file changed

+15
-25
lines changed

1 file changed

+15
-25
lines changed

ui/src/app/applications/components/application-parameters/application-parameters.tsx

+15-25
Original file line numberDiff line numberDiff line change
@@ -192,31 +192,21 @@ export const ApplicationParameters = (props: {
192192
/>
193193
)
194194
});
195-
if (source?.helm?.values) {
196-
attributes.push({
197-
title: 'VALUES',
198-
view: source.helm && (
199-
<Expandable>
200-
<pre>{source.helm.values}</pre>
201-
</Expandable>
202-
),
203-
edit: (formApi: FormApi) => (
204-
<div>
205-
<pre>
206-
<FormField formApi={formApi} field='spec.source.helm.values' component={TextArea} />
207-
</pre>
208-
{props.details.helm.values && (
209-
<div>
210-
<label>values.yaml</label>
211-
<Expandable>
212-
<pre>{props.details.helm.values}</pre>
213-
</Expandable>
214-
</div>
215-
)}
216-
</div>
217-
)
218-
});
219-
}
195+
attributes.push({
196+
title: 'VALUES',
197+
view: source.helm && (
198+
<Expandable>
199+
<pre>{source.helm.values}</pre>
200+
</Expandable>
201+
),
202+
edit: (formApi: FormApi) => (
203+
<div>
204+
<pre>
205+
<FormField formApi={formApi} field='spec.source.helm.values' component={TextArea} />
206+
</pre>
207+
</div>
208+
)
209+
});
220210
const paramsByName = new Map<string, models.HelmParameter>();
221211
(props.details.helm.parameters || []).forEach(param => paramsByName.set(param.name, param));
222212
const overridesByName = new Map<string, number>();

0 commit comments

Comments
 (0)