Added password on addNewVariable modal
This commit is contained in:
parent
2f56f3a952
commit
fabb3c9b56
1 changed files with 20 additions and 8 deletions
|
|
@ -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)}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue