mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-29 06:48:45 +00:00
chore: update dependencies in pnpm-lock.yaml and package.json, including zod to version 4.3.6, @dokploy/trpc-openapi to version 0.0.13, and @trpc packages to version 11.10.0; refactor loading state handling in application components
This commit is contained in:
@@ -60,7 +60,7 @@ export const HandleDestinations = ({ destinationId }: Props) => {
|
||||
const { data: servers } = api.server.withSSHKey.useQuery();
|
||||
const { data: isCloud } = api.settings.isCloud.useQuery();
|
||||
|
||||
const { mutateAsync, isError, error, isLoading } = destinationId
|
||||
const { mutateAsync, isError, error, isPending } = destinationId
|
||||
? api.destination.update.useMutation()
|
||||
: api.destination.create.useMutation();
|
||||
|
||||
@@ -75,7 +75,7 @@ export const HandleDestinations = ({ destinationId }: Props) => {
|
||||
);
|
||||
const {
|
||||
mutateAsync: testConnection,
|
||||
isLoading: isLoadingConnection,
|
||||
isPending: isPendingConnection,
|
||||
error: connectionError,
|
||||
isError: isErrorConnection,
|
||||
} = api.destination.testConnection.useMutation();
|
||||
@@ -410,7 +410,7 @@ export const HandleDestinations = ({ destinationId }: Props) => {
|
||||
<Button
|
||||
type="button"
|
||||
variant={"secondary"}
|
||||
isLoading={isLoadingConnection}
|
||||
isLoading={isPendingConnection}
|
||||
onClick={async () => {
|
||||
await handleTestConnection(form.getValues("serverId"));
|
||||
}}
|
||||
@@ -420,7 +420,7 @@ export const HandleDestinations = ({ destinationId }: Props) => {
|
||||
</div>
|
||||
) : (
|
||||
<Button
|
||||
isLoading={isLoadingConnection}
|
||||
isLoading={isPendingConnection}
|
||||
type="button"
|
||||
variant="secondary"
|
||||
onClick={async () => {
|
||||
@@ -432,7 +432,7 @@ export const HandleDestinations = ({ destinationId }: Props) => {
|
||||
)}
|
||||
|
||||
<Button
|
||||
isLoading={isLoading}
|
||||
isLoading={isPending}
|
||||
form="hook-form-destination-add"
|
||||
type="submit"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user