From b3ee8ece93195d2454481772eb15f95c9659b243 Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Fri, 2 Aug 2024 19:40:59 +0200 Subject: [PATCH] chore(actions): Rename "Copy" to "Duplicate" (#24161) --- frontend/src/scenes/data-management/actions/ActionsTable.tsx | 4 ++-- frontend/src/scenes/scenes.ts | 2 +- frontend/src/scenes/urls.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/scenes/data-management/actions/ActionsTable.tsx b/frontend/src/scenes/data-management/actions/ActionsTable.tsx index b1658cc94ed83..a0164fad09672 100644 --- a/frontend/src/scenes/data-management/actions/ActionsTable.tsx +++ b/frontend/src/scenes/data-management/actions/ActionsTable.tsx @@ -155,8 +155,8 @@ export function ActionsTable(): JSX.Element { Edit - - Copy + + Duplicate = { [urls.dashboardSubcriptions(':id')]: Scene.Dashboard, [urls.dashboardSubcription(':id', ':subscriptionId')]: Scene.Dashboard, [urls.createAction()]: Scene.Action, - [urls.copyAction(null)]: Scene.Action, + [urls.duplicateAction(null)]: Scene.Action, [urls.action(':id')]: Scene.Action, [urls.ingestionWarnings()]: Scene.DataManagement, [urls.insightNew()]: Scene.Insight, diff --git a/frontend/src/scenes/urls.ts b/frontend/src/scenes/urls.ts index 831178f54ee87..54045fd95f270 100644 --- a/frontend/src/scenes/urls.ts +++ b/frontend/src/scenes/urls.ts @@ -50,7 +50,7 @@ export const urls = { sharedDashboard: (shareToken: string): string => `/shared_dashboard/${shareToken}`, createAction: (): string => `/data-management/actions/new`, - copyAction: (action: ActionType | null): string => { + duplicateAction: (action: ActionType | null): string => { const queryParams = action ? `?copy=${encodeURIComponent(JSON.stringify(action))}` : '' return `/data-management/actions/new/${queryParams}` },