diff --git a/apps/dokploy/components/dashboard/application/deployments/refresh-token.tsx b/apps/dokploy/components/dashboard/application/deployments/refresh-token.tsx index c49331ed73..853e1d5265 100644 --- a/apps/dokploy/components/dashboard/application/deployments/refresh-token.tsx +++ b/apps/dokploy/components/dashboard/application/deployments/refresh-token.tsx @@ -12,6 +12,7 @@ import { AlertDialogTrigger, } from "@/components/ui/alert-dialog"; import { api } from "@/utils/api"; +import { Button } from "@/components/ui/button"; interface Props { id: string; @@ -25,8 +26,10 @@ export const RefreshToken = ({ id, type }: Props) => { const utils = api.useUtils(); return ( - - + + diff --git a/apps/dokploy/components/dashboard/application/deployments/show-deployments.tsx b/apps/dokploy/components/dashboard/application/deployments/show-deployments.tsx index ccf2564b06..8e1b508736 100644 --- a/apps/dokploy/components/dashboard/application/deployments/show-deployments.tsx +++ b/apps/dokploy/components/dashboard/application/deployments/show-deployments.tsx @@ -4,6 +4,9 @@ import { ChevronUp, Clock, Copy, + EyeClosedIcon, + EyeIcon, + EyeOffIcon, Loader2, RefreshCcw, RocketIcon, @@ -98,6 +101,7 @@ export const ShowDeployments = ({ const [expandedDescriptions, setExpandedDescriptions] = useState>( new Set(), ); + const [showWebhookUrl, setShowWebhookUrl] = useState(false); const webhookUrl = useMemo( () => @@ -105,6 +109,11 @@ export const ShowDeployments = ({ [url, refreshToken, type], ); + const webhookUrlMasked = useMemo( + () => "•".repeat(webhookUrl.length), + [webhookUrl], + ); + const MAX_DESCRIPTION_LENGTH = 200; const truncateDescription = (description: string): string => { @@ -231,7 +240,7 @@ export const ShowDeployments = ({
Webhook URL: -
+
- {webhookUrl} + + {showWebhookUrl ? webhookUrl : webhookUrlMasked} + + {(type === "application" || type === "compose") && ( )}