Add disabled attribute to Input and button components
This commit is contained in:
parent
191afcb940
commit
b26973a7c4
1 changed files with 2 additions and 0 deletions
|
|
@ -54,6 +54,7 @@ export default function KeypairListComponent({
|
||||||
return (
|
return (
|
||||||
<div key={idx} className="flex w-full gap-2">
|
<div key={idx} className="flex w-full gap-2">
|
||||||
<Input
|
<Input
|
||||||
|
disabled={disabled}
|
||||||
data-testid={
|
data-testid={
|
||||||
editNode ? "editNodekeypair" + index : "keypair" + index
|
editNode ? "editNodekeypair" + index : "keypair" + index
|
||||||
}
|
}
|
||||||
|
|
@ -91,6 +92,7 @@ export default function KeypairListComponent({
|
||||||
|
|
||||||
{isList && index === ref.current.length - 1 ? (
|
{isList && index === ref.current.length - 1 ? (
|
||||||
<button
|
<button
|
||||||
|
disabled={disabled}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
let newInputList = _.cloneDeep(ref.current);
|
let newInputList = _.cloneDeep(ref.current);
|
||||||
newInputList.push({ "": "" });
|
newInputList.push({ "": "" });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue