Openstatus www.openstatus.dev

Fix Copy Text of Actions (#1606)

Signed-off-by: Moulik Aggarwal <qwertymoulik@gmail.com>

authored by

Moulik Aggarwal and committed by
GitHub
403b20f5 a9288d6c

+7 -7
+1 -1
apps/dashboard/next-env.d.ts
··· 1 1 /// <reference types="next" /> 2 2 /// <reference types="next/image-types/global" /> 3 - import "./.next/types/routes.d.ts"; 3 + import "./.next/dev/types/routes.d.ts"; 4 4 5 5 // NOTE: This file should not be edited 6 6 // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
+1 -1
apps/dashboard/src/app/(dashboard)/monitors/[id]/nav-actions.tsx
··· 68 68 const actions = getActions({ 69 69 edit: () => router.push(`/monitors/${id}/edit`), 70 70 "copy-id": () => { 71 - navigator.clipboard.writeText("ID"); 71 + navigator.clipboard.writeText(id); 72 72 toast.success("Monitor ID copied to clipboard"); 73 73 }, 74 74 clone: () => {
+1 -1
apps/dashboard/src/app/(dashboard)/status-pages/[id]/nav-actions.tsx
··· 43 43 const actions = getActions({ 44 44 edit: () => router.push(`/status-pages/${id}/edit`), 45 45 "copy-id": () => { 46 - navigator.clipboard.writeText("ID"); 46 + navigator.clipboard.writeText(id); 47 47 toast.success("Status Page ID copied to clipboard"); 48 48 }, 49 49 });
+1 -1
apps/dashboard/src/components/data-table/monitors/data-table-row-actions.tsx
··· 31 31 const actions = getActions({ 32 32 edit: () => router.push(`/monitors/${row.original.id}/edit`), 33 33 "copy-id": () => { 34 - navigator.clipboard.writeText("ID"); 34 + navigator.clipboard.writeText(row.original.id.toString()); 35 35 toast.success("Monitor ID copied to clipboard"); 36 36 }, 37 37 // export: () => setOpenDialog(true),
+1 -1
apps/dashboard/src/components/data-table/status-pages/data-table-row-actions.tsx
··· 31 31 const actions = getActions({ 32 32 edit: () => router.push(`/status-pages/${row.original.id}/edit`), 33 33 "copy-id": () => { 34 - navigator.clipboard.writeText("ID"); 34 + navigator.clipboard.writeText(row.original.id.toString()); 35 35 toast.success("Monitor ID copied to clipboard"); 36 36 }, 37 37 });
+1 -1
apps/dashboard/src/components/nav/nav-monitors.tsx
··· 132 132 const actions = getActions({ 133 133 edit: () => router.push(`/monitors/${item.id}/edit`), 134 134 "copy-id": () => { 135 - navigator.clipboard.writeText("ID"); 135 + navigator.clipboard.writeText(item.id.toString()); 136 136 toast.success("Monitor ID copied to clipboard"); 137 137 }, 138 138 clone: () => {
+1 -1
apps/dashboard/src/components/nav/nav-status-pages.tsx
··· 116 116 const actions = getActions({ 117 117 edit: () => router.push(`/status-pages/${item.id}/edit`), 118 118 "copy-id": () => { 119 - navigator.clipboard.writeText("ID"); 119 + navigator.clipboard.writeText(item.id.toString()); 120 120 toast.success("Status Page ID copied to clipboard"); 121 121 }, 122 122 });