Added password on addNewVariable modal

This commit is contained in:
Lucas Oliveira 2024-05-06 19:10:19 +01:00
commit fabb3c9b56

View file

@ -106,14 +106,26 @@ export default function AddNewVariableButton({ children }): JSX.Element {
id={"type-global-variables"} id={"type-global-variables"}
></InputComponent> ></InputComponent>
<Label>Value</Label> <Label>Value</Label>
<Textarea {type === "Credential" ? (
value={value} <InputComponent
onChange={(e) => { password
setValue(e.target.value); value={value}
}} onChange={(e) => {
placeholder="Insert a value for the variable..." setValue(e);
className="w-full resize-none custom-scroll" }}
/> placeholder="Insert a value for the variable..."
/>
) : (
<Textarea
value={value}
onChange={(e) => {
setValue(e.target.value);
}}
placeholder="Insert a value for the variable..."
className="w-full resize-none custom-scroll"
/>
)}
<Label>Apply To Fields (optional)</Label> <Label>Apply To Fields (optional)</Label>
<InputComponent <InputComponent
setSelectedOptions={(value) => setFields(value)} setSelectedOptions={(value) => setFields(value)}