From a50f958a6f99a6123935e3b1438c4477b5b056e0 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Wed, 13 May 2026 00:54:20 -0600 Subject: [PATCH] feat(settings): add copy button to server IP in web server settings (#4397) --- .../components/dashboard/settings/web-server.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/apps/dokploy/components/dashboard/settings/web-server.tsx b/apps/dokploy/components/dashboard/settings/web-server.tsx index d9df975e7..d043c564b 100644 --- a/apps/dokploy/components/dashboard/settings/web-server.tsx +++ b/apps/dokploy/components/dashboard/settings/web-server.tsx @@ -1,4 +1,4 @@ -import { ServerIcon } from "lucide-react"; +import { CopyIcon, ServerIcon } from "lucide-react"; import { Card, CardContent, @@ -7,6 +7,8 @@ import { CardTitle, } from "@/components/ui/card"; import { api } from "@/utils/api"; +import copy from "copy-to-clipboard"; +import { toast } from "sonner"; import { ShowDokployActions } from "./servers/actions/show-dokploy-actions"; import { ShowStorageActions } from "./servers/actions/show-storage-actions"; import { ShowTraefikActions } from "./servers/actions/show-traefik-actions"; @@ -49,8 +51,17 @@ export const WebServer = () => {