mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-05 05:55:21 +02:00
refactor(multi-server): fix deploy on docker compose
This commit is contained in:
@@ -46,16 +46,15 @@ export const SetupServer = ({ serverId }: Props) => {
|
||||
{ serverId },
|
||||
{
|
||||
enabled: !!serverId,
|
||||
refetchInterval: 1000,
|
||||
},
|
||||
);
|
||||
|
||||
const { mutateAsync } = api.server.setup.useMutation({
|
||||
// onMutate: async (variables) => {
|
||||
// console.log("Running....");
|
||||
// utils.deployment.allByServer.invalidate({ serverId: variables.serverId });
|
||||
// // refetch();
|
||||
// },
|
||||
const { mutateAsync, isLoading } = api.server.setup.useMutation({
|
||||
onMutate: async (variables) => {
|
||||
console.log("Running....");
|
||||
refetch();
|
||||
// refetch();
|
||||
},
|
||||
});
|
||||
|
||||
return (
|
||||
@@ -108,7 +107,7 @@ export const SetupServer = ({ serverId }: Props) => {
|
||||
});
|
||||
}}
|
||||
>
|
||||
<Button>Setup Server</Button>
|
||||
<Button isLoading={isLoading}>Setup Server</Button>
|
||||
</DialogAction>
|
||||
</div>
|
||||
</CardHeader>
|
||||
|
||||
Reference in New Issue
Block a user