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