Statusaufforderung zu Aircraft hinzugefügt
This commit is contained in:
@@ -109,7 +109,8 @@ const FMSStatusSelector = ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex gap-2 p-4 justify-center items-center min-h-[136px] h-full">
|
<div className="flex flex-col gap-2 mt-2 p-4 text-base-content">
|
||||||
|
<div className="flex gap-2 justify-center items-center h-full">
|
||||||
{Array.from({ length: 9 }, (_, i) => (i + 1).toString())
|
{Array.from({ length: 9 }, (_, i) => (i + 1).toString())
|
||||||
.filter((status) => status !== "5") // Exclude status 5
|
.filter((status) => status !== "5") // Exclude status 5
|
||||||
.map((status) => (
|
.map((status) => (
|
||||||
@@ -151,6 +152,28 @@ const FMSStatusSelector = ({
|
|||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
<div className="flex gap-1 p-2 justify-center items-center">
|
||||||
|
{["E", "C", "F", "J", "L", "c", "d", "h", "o", "u"].map((char) => (
|
||||||
|
<button
|
||||||
|
disabled={!dispatcherConnected}
|
||||||
|
key={char}
|
||||||
|
className={cn(
|
||||||
|
"flex justify-center items-center min-w-10 min-h-10 cursor-pointer text-lg font-bold",
|
||||||
|
!dispatcherConnected && "cursor-not-allowed",
|
||||||
|
)}
|
||||||
|
style={{
|
||||||
|
backgroundColor: "var(--color-base-200)",
|
||||||
|
color: "gray",
|
||||||
|
}}
|
||||||
|
onClick={() => {
|
||||||
|
toast.success(`Button ${char} clicked`);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{char}
|
||||||
|
</button>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user