diff --git a/airflow/www/static/js/dag/details/dagRun/index.tsx b/airflow/www/static/js/dag/details/dagRun/index.tsx index c22316cf389b6..d2f1b8d3c8b68 100644 --- a/airflow/www/static/js/dag/details/dagRun/index.tsx +++ b/airflow/www/static/js/dag/details/dagRun/index.tsx @@ -24,10 +24,12 @@ import { Button, Link, Divider, + Spacer, Table, Tbody, Tr, Td, + useClipboard, } from '@chakra-ui/react'; import { MdOutlineAccountTree } from 'react-icons/md'; @@ -59,6 +61,7 @@ interface Props { const DagRun = ({ runId }: Props) => { const { data: { dagRuns } } = useGridData(); const run = dagRuns.find((dr) => dr.runId === runId); + const { onCopy, hasCopied } = useClipboard(run?.conf || ''); if (!run) return null; const { executionDate, @@ -185,16 +188,20 @@ const DagRun = ({ runId }: Props) => { confIsJson ? (