Openstatus www.openstatus.dev

Updated the dashboard changes (#1633)

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

authored by

Moulik Aggarwal and committed by
GitHub
f8e8eb06 9be204e0

+15 -15
+1 -1
apps/dashboard/src/app/(dashboard)/monitors/[id]/nav-actions.tsx
··· 195 195 <QuickActions 196 196 actions={actions} 197 197 deleteAction={{ 198 - title: "Monitor", 198 + title: monitor.name, 199 199 confirmationValue: "delete monitor", 200 200 submitAction: async () => { 201 201 await deleteMonitorMutation.mutateAsync({
+1 -1
apps/dashboard/src/app/(dashboard)/status-pages/[id]/nav-actions.tsx
··· 72 72 <QuickActions 73 73 actions={actions} 74 74 deleteAction={{ 75 - title: "Status Page", 75 + title: statusPage.title, 76 76 confirmationValue: "delete status page", 77 77 submitAction: async () => { 78 78 await deleteStatusPageMutation.mutateAsync({
+1 -1
apps/dashboard/src/components/data-table/incidents/data-table-row-actions.tsx
··· 109 109 <QuickActions 110 110 actions={actions} 111 111 deleteAction={{ 112 - title: "Incident", 112 + title: row.original.title, 113 113 confirmationValue: "delete incident", 114 114 submitAction: async () => { 115 115 await deleteIncidentMutation.mutateAsync({
+1 -1
apps/dashboard/src/components/data-table/maintenances/data-table-row-actions.tsx
··· 55 55 <QuickActions 56 56 actions={actions} 57 57 deleteAction={{ 58 - title: "Delete", 58 + title: row.original.title, 59 59 confirmationValue: "delete", 60 60 submitAction: async () => { 61 61 await deleteMaintenanceMutation.mutateAsync({
+1 -1
apps/dashboard/src/components/data-table/monitors/data-table-row-actions.tsx
··· 42 42 <QuickActions 43 43 actions={actions} 44 44 deleteAction={{ 45 - title: "Monitor", 45 + title: row.original.name, 46 46 confirmationValue: "delete monitor", 47 47 submitAction: async () => { 48 48 await deleteMonitorMutation.mutateAsync({
+1 -1
apps/dashboard/src/components/data-table/notifications/data-table-row-actions.tsx
··· 47 47 <QuickActions 48 48 actions={actions} 49 49 deleteAction={{ 50 - title: "Delete", 50 + title: props.row.original.name, 51 51 confirmationValue: "delete notifier", 52 52 submitAction: async () => { 53 53 await deleteNotifierMutation.mutateAsync({
+1 -1
apps/dashboard/src/components/data-table/private-locations/data-table-row-actions.tsx
··· 47 47 <QuickActions 48 48 actions={actions} 49 49 deleteAction={{ 50 - title: "Delete", 50 + title: props.row.original.name, 51 51 confirmationValue: "delete private location", 52 52 submitAction: async () => { 53 53 await deletePrivateLocationMutation.mutateAsync({
+1 -1
apps/dashboard/src/components/data-table/settings/invitations/data-table.tsx
··· 70 70 <div className="flex justify-end"> 71 71 <QuickActions 72 72 deleteAction={{ 73 - title: "Invitation", 73 + title: item.email, 74 74 submitAction: async () => 75 75 deleteInvitationMutation.mutateAsync({ id: item.id }), 76 76 }}
+1 -1
apps/dashboard/src/components/data-table/settings/members/data-table.tsx
··· 52 52 <div className="flex justify-end"> 53 53 <QuickActions 54 54 deleteAction={{ 55 - title: "Member", 55 + title: item.user?.email ?? "", 56 56 confirmationValue: "delete member", 57 57 // FIXME: when deleting myself, throws an error, should have been caught by the toast.error 58 58 submitAction: async () =>
+1 -1
apps/dashboard/src/components/data-table/status-pages/data-table-row-actions.tsx
··· 40 40 <QuickActions 41 41 actions={actions} 42 42 deleteAction={{ 43 - title: "Status Page", 43 + title: row.original.title, 44 44 confirmationValue: "delete status page", 45 45 submitAction: async () => { 46 46 await deleteStatusPageMutation.mutateAsync({
+1 -1
apps/dashboard/src/components/data-table/status-report-updates/data-table-row-actions.tsx
··· 55 55 <QuickActions 56 56 actions={actions} 57 57 deleteAction={{ 58 - title: "Delete", 58 + title: String(row.id), 59 59 submitAction: async () => { 60 60 await deleteStatusReportUpdateMutation.mutateAsync({ 61 61 id: row.id,
+1 -1
apps/dashboard/src/components/data-table/status-reports/data-table-row-actions.tsx
··· 99 99 <QuickActions 100 100 actions={actions} 101 101 deleteAction={{ 102 - title: "Delete", 102 + title: row.original.title, 103 103 submitAction: async () => { 104 104 await deleteStatusReportMutation.mutateAsync({ 105 105 id: row.original.id,
+1 -1
apps/dashboard/src/components/data-table/subscribers/data-table-row-actions.tsx
··· 30 30 <QuickActions 31 31 actions={[]} 32 32 deleteAction={{ 33 - title: "Subscribers", 33 + title: row.original.email, 34 34 submitAction: async () => { 35 35 await deleteAction.mutateAsync({ 36 36 id: row.original.id,
+1 -1
apps/dashboard/src/components/nav/nav-monitors.tsx
··· 188 188 <QuickActions 189 189 actions={actions} 190 190 deleteAction={{ 191 - title: "Monitor", 191 + title: item.name, 192 192 confirmationValue: "delete monitor", 193 193 submitAction: async () => { 194 194 await deleteMonitorMutation.mutateAsync({
+1 -1
apps/dashboard/src/components/nav/nav-status-pages.tsx
··· 160 160 <QuickActions 161 161 actions={actions} 162 162 deleteAction={{ 163 - title: "Status Page", 163 + title: item.title, 164 164 confirmationValue: "delete status page", 165 165 submitAction: async () => { 166 166 await deleteStatusPage.mutateAsync({ id: item.id });