ui/debug: remove floating debug buttons

This commit is contained in:
Johannes Kirschbauer
2025-07-30 11:04:22 +02:00
parent ea63b4411e
commit f8cdac2a63

View File

@@ -220,36 +220,6 @@ const ClanSceneController = (props: RouteSectionProps) => {
}} }}
/> />
</Show> </Show>
<div
class="flex flex-row"
style={{ position: "absolute", top: "10px", left: "10px" }}
>
<Button
ghost
onClick={() => {
setStore(
produce((s) => {
for (const machineId in s.sceneData[clanURI]) {
// Reset the position of each machine to [0, 0]
s.sceneData[clanURI] = {};
}
}),
);
}}
>
Reset Store
</Button>
<Button
ghost
onClick={() => {
console.log("Refetching API");
machinesQuery.refetch();
}}
>
Refetch API
</Button>
</div>
{/* TODO: Add minimal display time */}
<div <div
class={cx({ class={cx({
"fade-out": !machinesQuery.isLoading && loadingCooldown(), "fade-out": !machinesQuery.isLoading && loadingCooldown(),