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,6 +106,16 @@ export default function AddNewVariableButton({ children }): JSX.Element {
id={"type-global-variables"} id={"type-global-variables"}
></InputComponent> ></InputComponent>
<Label>Value</Label> <Label>Value</Label>
{type === "Credential" ? (
<InputComponent
password
value={value}
onChange={(e) => {
setValue(e);
}}
placeholder="Insert a value for the variable..."
/>
) : (
<Textarea <Textarea
value={value} value={value}
onChange={(e) => { onChange={(e) => {
@ -114,6 +124,8 @@ export default function AddNewVariableButton({ children }): JSX.Element {
placeholder="Insert a value for the variable..." placeholder="Insert a value for the variable..."
className="w-full resize-none custom-scroll" 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)}