diff --git a/apps/dokploy/pages/dashboard/project/[projectId]/services/application/[applicationId].tsx b/apps/dokploy/pages/dashboard/project/[projectId]/services/application/[applicationId].tsx index 3ef433ed9..21e05dbdd 100644 --- a/apps/dokploy/pages/dashboard/project/[projectId]/services/application/[applicationId].tsx +++ b/apps/dokploy/pages/dashboard/project/[projectId]/services/application/[applicationId].tsx @@ -52,6 +52,7 @@ import { useRouter } from "next/router"; import React, { useState, useEffect, type ReactElement } from "react"; import { toast } from "sonner"; import superjson from "superjson"; +import copy from 'copy-to-clipboard'; type TabState = | "projects" @@ -139,6 +140,13 @@ const Service = (
{ + if (data?.server?.ipAddress) { + copy(data.server.ipAddress); + toast.success("IP Address Copied!"); + } + }} variant={ !data?.serverId ? "default" diff --git a/apps/dokploy/pages/dashboard/project/[projectId]/services/compose/[composeId].tsx b/apps/dokploy/pages/dashboard/project/[projectId]/services/compose/[composeId].tsx index 67c9c7b12..373e8a25d 100644 --- a/apps/dokploy/pages/dashboard/project/[projectId]/services/compose/[composeId].tsx +++ b/apps/dokploy/pages/dashboard/project/[projectId]/services/compose/[composeId].tsx @@ -44,6 +44,8 @@ import Link from "next/link"; import { useRouter } from "next/router"; import React, { useState, useEffect, type ReactElement } from "react"; import superjson from "superjson"; +import { toast } from "sonner"; +import copy from 'copy-to-clipboard'; type TabState = | "projects" @@ -131,6 +133,13 @@ const Service = (
{ + if (data?.server?.ipAddress) { + copy(data.server.ipAddress); + toast.success("IP Address Copied!"); + } + }} variant={ !data?.serverId ? "default" @@ -142,7 +151,7 @@ const Service = ( {data?.server?.name || "Dokploy Server"} {data?.server?.serverStatus === "inactive" && ( - +