diff --git a/web/src/components/MachineList.tsx b/web/src/components/MachineList.tsx index eec5713..0d52026 100644 --- a/web/src/components/MachineList.tsx +++ b/web/src/components/MachineList.tsx @@ -219,23 +219,19 @@ export const columns: ColumnDef[] = [ )} {machine.type === "comfy-deploy-serverless" && ( <> - - + { + const id = toast.loading("Getting machine url...") + const url = await callServerPromise( + editWorkflowOnMachine(machine.id), + ); + if (url && typeof url !== "object") { + window.open(url, "_blank"); + } else if (url && typeof url === "object" && url.error) { + console.error(url.error); + } + toast.dismiss(id) + }}> + Open ComfyUI { @@ -252,55 +248,57 @@ export const columns: ColumnDef[] = [ Edit - {machine.type === "comfy-deploy-serverless" ? ( - - ) : ( - - )} - + models: { + fieldType: "models", + }, + gpu: { + inputProps: {}, + }, + }} + /> + ) : ( + + ) + } + ); }, },