diff --git a/web/src/components/InsertModal.tsx b/web/src/components/InsertModal.tsx index 7df456a..523bbc8 100644 --- a/web/src/components/InsertModal.tsx +++ b/web/src/components/InsertModal.tsx @@ -31,6 +31,7 @@ export function InsertModal< tooltip?: string; disabled?: boolean; title: React.ReactNode; + buttonTitle?: React.ReactNode; description: string; dialogClassName?: string; serverAction: (data: z.infer) => Promise; @@ -54,7 +55,7 @@ export function InsertModal< setOpen(true); }} > - {props.title} + {props.buttonTitle ?? props.title} diff --git a/web/src/components/MachineList.tsx b/web/src/components/MachineList.tsx index 4e8ca1d..5b5d5cb 100644 --- a/web/src/components/MachineList.tsx +++ b/web/src/components/MachineList.tsx @@ -396,11 +396,12 @@ export function MachineList({ ? `Max ${machineMaxCount} ComfyUI machine for your account, upgrade to unlock more cnfiguration.` : `Max ${machineMaxCount} ComfyUI machine for your account` } - title={ + buttonTitle={ <> New Machine {locked ? : } } + title={"New Machine"} description="Add custom ComfyUI machines to your account." serverAction={addCustomMachine} formSchema={addCustomMachineSchema}