From 8c5bf09cdd3ff2facf9d147ab14c0c85c156c03b Mon Sep 17 00:00:00 2001 From: Ivan Tymoshenko Date: Tue, 5 Dec 2023 18:14:52 +0100 Subject: [PATCH] feat: add description and default fields to the plugins (#66) --- src/renderer/src/components/plugins/PluginEnvVarsForm.jsx | 3 ++- .../components/steps/configure-services/ConfigureService.jsx | 2 +- .../src/components/templates/TemplateEnvVarsForm.jsx | 2 +- src/renderer/src/utils.js | 5 +++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/renderer/src/components/plugins/PluginEnvVarsForm.jsx b/src/renderer/src/components/plugins/PluginEnvVarsForm.jsx index 7fdfc307..58205e7a 100644 --- a/src/renderer/src/components/plugins/PluginEnvVarsForm.jsx +++ b/src/renderer/src/components/plugins/PluginEnvVarsForm.jsx @@ -25,9 +25,10 @@ function PluginEnvVarsForm ({ title={pluginFound.form[element].path} titleColor={WHITE} key={element} + helper={pluginFound.form[element].description || ''} > { if (plugin.envVars.length > 0) { plugin.envVars.forEach(envVar => { - const { name: envName, type, default: envDefault, path } = envVar + const { name: envName, type, default: envDefault, path, description } = envVar const value = envDefault || '' pluginForm[envName] = { path, value, - type + type, + description } pluginValidations[`${envName}Valid`] = value !== '' pluginFormErrors[envName] = ''