fix type and fix redirect to resource niceId on create

This commit is contained in:
miloschwartz
2025-09-17 16:27:22 -04:00
parent e4509c5714
commit 7f989f77ac
17 changed files with 22 additions and 41 deletions

View File

@@ -574,7 +574,7 @@ export default function ReverseProxyTargets(props: {
const [showPathInput, setShowPathInput] = useState(
!!(row.original.path || row.original.pathMatchType)
);
if (!showPathInput) {
return (
<Button
@@ -590,7 +590,7 @@ export default function ReverseProxyTargets(props: {
}
}}
>
+ {t("matchPath")}
+ {t("matchPath")}
</Button>
);
}
@@ -617,8 +617,8 @@ export default function ReverseProxyTargets(props: {
</Select>
<Input
placeholder={
row.original.pathMatchType === "regex"
? "^/api/.*"
row.original.pathMatchType === "regex"
? "^/api/.*"
: "/path"
}
defaultValue={row.original.path || ""}
@@ -1489,11 +1489,6 @@ export default function ReverseProxyTargets(props: {
rows={4}
/>
</FormControl>
<FormDescription>
{t(
"customHeadersDescription"
)}
</FormDescription>
<FormMessage />
</FormItem>
)}