Procházet zdrojové kódy

fix: use config.json placeholder in install form field

Nicolas Meienberger před 2 roky
rodič
revize
3b239e9b00

+ 11 - 1
src/client/modules/Apps/components/InstallForm/InstallForm.tsx

@@ -102,7 +102,17 @@ export const InstallForm: React.FC<IProps> = ({ formFields, info, onSubmit, init
       );
     }
 
-    return <Input key={field.env_variable} {...register(field.env_variable)} label={label} error={errors[field.env_variable]?.message} disabled={loading} className="mb-3" placeholder={field.label} />;
+    return (
+      <Input
+        key={field.env_variable}
+        {...register(field.env_variable)}
+        label={label}
+        error={errors[field.env_variable]?.message}
+        disabled={loading}
+        className="mb-3"
+        placeholder={field.placeholder || field.label}
+      />
+    );
   };
 
   const renderExposeForm = () => (