diff --git a/web/src/pages/helm-template/components/pod-environment-fields.tsx b/web/src/pages/helm-template/components/pod-environment-fields.tsx index 590a0174..2a1192f1 100644 --- a/web/src/pages/helm-template/components/pod-environment-fields.tsx +++ b/web/src/pages/helm-template/components/pod-environment-fields.tsx @@ -31,7 +31,15 @@ const PodEnvironmentFields: FC = ({ podIndex }) => {
{fields.map((field, envIdx) => (
div]:mb-0', + { + 'divide-red-500 border-red-500 dark:divide-red-500 dark:border-red-500': + control.getFieldState( + `pods.${podIndex}.environment.${envIdx}.name`, + ).invalid, + }, + )} key={field.id} > ({ ...styles, - border: '1px solid #6b7280', + border: error ? '1px solid #ef4444' : '1px solid #6b7280', borderRadius: '6px', background: isDark ? '#121212' : '#fff', color: isDark ? '#fff' : '#121212',