Deployment interface

This commit is contained in:
2026-01-03 20:15:58 +01:00
parent 61a9e1d8d9
commit 07a37f92df
6 changed files with 54 additions and 24 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ import { Combobox } from "../ui/combobox";
import { deployApp } from "@/lib/dockship/deploy";
import { useAsync } from "@/hooks/use-async";
import { Application } from "@/lib/types";
import { getApps } from "@/lib/dockship/application";
export default function DeployAppDialog({
defaultApp,
@@ -27,7 +28,7 @@ export default function DeployAppDialog({
children: ReactNode;
}) {
const { value: nodes } = useAsync([], getLiveNodes);
const { value: apps } = useAsync<Application[]>([], async () => []);
const { value: apps } = useAsync<Application[]>([], getApps);
const [name, setName] = useState("");
const [app, setApp] = useState(defaultApp || "");
const [node, setNode] = useState("");