From 1c09acf515331504fdb7d0d61fed3077452a0348 Mon Sep 17 00:00:00 2001 From: fuomag9 <1580624+fuomag9@users.noreply.github.com> Date: Sat, 8 Nov 2025 14:37:50 +0100 Subject: [PATCH] fix not being able to create multiple proxy hosts in succession without needing to refresh the page also add recommendation for not disabling Set Host Header --- .../proxy-hosts/ProxyHostsClient.tsx | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/app/(dashboard)/proxy-hosts/ProxyHostsClient.tsx b/app/(dashboard)/proxy-hosts/ProxyHostsClient.tsx index 252f35b3..4eebdbb7 100644 --- a/app/(dashboard)/proxy-hosts/ProxyHostsClient.tsx +++ b/app/(dashboard)/proxy-hosts/ProxyHostsClient.tsx @@ -67,6 +67,7 @@ const AUTHENTIK_DEFAULT_TRUSTED_PROXIES = ["private_ranges"]; export default function ProxyHostsClient({ hosts, certificates, accessLists, authentikDefaults }: Props) { const [createOpen, setCreateOpen] = useState(false); + const [createDialogKey, setCreateDialogKey] = useState(0); const [editHost, setEditHost] = useState(null); const [deleteHost, setDeleteHost] = useState(null); @@ -74,6 +75,11 @@ export default function ProxyHostsClient({ hosts, certificates, accessLists, aut await toggleProxyHostAction(id, enabled); }; + const handleOpenCreate = () => { + setCreateDialogKey(prev => prev + 1); + setCreateOpen(true); + }; + return ( @@ -95,7 +101,7 @@ export default function ProxyHostsClient({ hosts, certificates, accessLists, aut