Added editNode variable on global variables for inputs
This commit is contained in:
parent
1315137ab8
commit
d123d5b64f
4 changed files with 5 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ export default function Dropdown({
|
||||||
>
|
>
|
||||||
{({ open }) => (
|
{({ open }) => (
|
||||||
<>
|
<>
|
||||||
<div className={"relative mt-1"}>
|
<div className={"relative"}>
|
||||||
<Listbox.Button
|
<Listbox.Button
|
||||||
data-test={`${id ?? ""}`}
|
data-test={`${id ?? ""}`}
|
||||||
className={
|
className={
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ export default function InputGlobalComponent({
|
||||||
setDb,
|
setDb,
|
||||||
name,
|
name,
|
||||||
data,
|
data,
|
||||||
|
editNode = false,
|
||||||
}: InputGlobalComponentType): JSX.Element {
|
}: InputGlobalComponentType): JSX.Element {
|
||||||
const globalVariablesEntries = useGlobalVariablesStore(
|
const globalVariablesEntries = useGlobalVariablesStore(
|
||||||
(state) => state.globalVariablesEntries
|
(state) => state.globalVariablesEntries
|
||||||
|
|
@ -70,6 +71,7 @@ export default function InputGlobalComponent({
|
||||||
return (
|
return (
|
||||||
<InputComponent
|
<InputComponent
|
||||||
id={"input-" + name}
|
id={"input-" + name}
|
||||||
|
editNode={editNode}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
password={data.node?.template[name].password ?? false}
|
password={data.node?.template[name].password ?? false}
|
||||||
value={data.node?.template[name].value ?? ""}
|
value={data.node?.template[name].value ?? ""}
|
||||||
|
|
|
||||||
|
|
@ -261,6 +261,7 @@ const EditNodeModal = forwardRef(
|
||||||
) : (
|
) : (
|
||||||
<InputGlobalComponent
|
<InputGlobalComponent
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
|
editNode={true}
|
||||||
onChange={(value) =>
|
onChange={(value) =>
|
||||||
handleOnNewValue(value, templateParam)
|
handleOnNewValue(value, templateParam)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -78,6 +78,7 @@ export type InputGlobalComponentType =
|
||||||
setDb: (value: boolean) => void,
|
setDb: (value: boolean) => void,
|
||||||
name: string,
|
name: string,
|
||||||
data: NodeDataType,
|
data: NodeDataType,
|
||||||
|
editNode?: boolean,
|
||||||
};
|
};
|
||||||
|
|
||||||
export type KeyPairListComponentType = {
|
export type KeyPairListComponentType = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue