diff --git a/messages/en-US.json b/messages/en-US.json index 3cbc4a04..b58f1493 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -470,7 +470,7 @@ "proxyErrorTls": "Invalid TLS Server Name. Use domain name format, or save empty to remove the TLS Server Name.", "proxyEnableSSL": "Enable SSL (https)", "target": "Target", - "configureTargets": "Configure Targets", + "configureTarget": "Configure Targets", "targetErrorFetch": "Failed to fetch targets", "targetErrorFetchDescription": "An error occurred while fetching targets", "siteErrorFetch": "Failed to fetch resource", diff --git a/src/app/[orgId]/settings/resources/[niceId]/proxy/page.tsx b/src/app/[orgId]/settings/resources/[niceId]/proxy/page.tsx index 028c97c7..eae1d116 100644 --- a/src/app/[orgId]/settings/resources/[niceId]/proxy/page.tsx +++ b/src/app/[orgId]/settings/resources/[niceId]/proxy/page.tsx @@ -918,7 +918,7 @@ export default function ReverseProxyTargets(props: { trigger={ } - } else { + /> + + + + ) : ( + updateTarget(row.original.targetId, { ...row.original, - ip: input - }); + ...config + }) } - }} - /> - ) - }, - { - accessorKey: "port", - header: t("targetPort"), - cell: ({ row }) => ( - - updateTarget(row.original.targetId, { - ...row.original, - port: parseInt(e.target.value, 10) - }) - } - /> - ) + showMethod={baseForm.watch("http")} + trigger={ + + } + /> + ); + } }, { accessorKey: "rewritePath",