Skip to content

Commit

Permalink
chore(actions): Rename "Copy" to "Duplicate" (#24161)
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes authored Aug 2, 2024
1 parent 2f0c1b4 commit b3ee8ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/scenes/data-management/actions/ActionsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ export function ActionsTable(): JSX.Element {
<LemonButton to={urls.action(action.id)} fullWidth>
Edit
</LemonButton>
<LemonButton to={urls.copyAction(action)} fullWidth>
Copy
<LemonButton to={urls.duplicateAction(action)} fullWidth>
Duplicate
</LemonButton>
<LemonButton
to={urls.replay(ReplayTabs.Recent, {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/scenes/scenes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ export const routes: Record<string, Scene> = {
[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,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/scenes/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
},
Expand Down

0 comments on commit b3ee8ec

Please sign in to comment.